@charset "UTF-8";

/* mimeiapp download site - mobile first */
:root {
  --brand: #f5c518;
  --brand-dark: #e0ad00;
  --brand-soft: #fff6cc;
  --ink: #1a1a1a;
  --muted: #666;
  --line: #eee;
  --bg: #fffdf6;
  --card: #ffffff;
  --accent: #c45c3e;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 50% -120px, #ffe98a 0%, transparent 60%),
    linear-gradient(180deg, #fff9e6 0%, var(--bg) 40%, #fff 100%);
  line-height: 1.65;
  padding-bottom: calc(88px + var(--safe-bottom));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 253, 246, 0.92);
  border-bottom: 1px solid rgba(245, 197, 24, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.nav {
  display: none;
  gap: 18px;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
  font-weight: 700;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 14px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

/* Hero */
.hero {
  padding: 28px 0 18px;
}

.hero-grid {
  display: grid;
  gap: 22px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #8a6a00;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 5.5vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.98rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active { transform: scale(0.98); }

.btn-android {
  background: linear-gradient(180deg, #ffd84d 0%, var(--brand) 100%);
  color: #1a1a1a;
  box-shadow: 0 8px 20px rgba(245, 197, 24, 0.45);
  flex: 1 1 140px;
}

.btn-android:hover {
  background: linear-gradient(180deg, #ffe066 0%, var(--brand-dark) 100%);
}

.btn-ios {
  background: #1a1a1a;
  color: #fff;
  flex: 1 1 140px;
}

.btn-ios:hover { background: #333; }

.btn-ghost {
  background: #fff;
  border: 1px solid #ddd;
  color: var(--ink);
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meta-pills li {
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}

.phone-frame {
  width: min(260px, 70%);
  margin: 0 auto;
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, #fff 0%, #f3f3f3 100%);
  box-shadow: var(--shadow);
  border: 1px solid #ececec;
}

.phone-frame img {
  border-radius: 20px;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #f7f7f7;
}

/* Sections */
.section {
  padding: 34px 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 4vw, 1.7rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-grid,
.card-grid {
  display: grid;
  gap: 12px;
}

.feature,
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.feature h3,
.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature p,
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.shot-grid figure {
  margin: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.shot-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.shot-grid figcaption {
  padding: 8px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 14px 52px;
  position: relative;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.keyword-box {
  background: linear-gradient(135deg, #fff8d6, #fff);
  border: 1px solid rgba(245, 197, 24, 0.45);
  border-radius: var(--radius);
  padding: 16px;
}

.keyword-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.keyword-links a {
  background: #fff;
  border: 1px solid #ead88a;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: #6b5500;
}

.keyword-links a:hover {
  background: var(--brand);
  color: #1a1a1a;
  border-color: var(--brand);
}

.keyword-intro {
  margin: 0;
  color: #666;
  font-size: 0.92rem;
}

.update-time {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: #999;
}

.related-box {
  margin-top: 18px;
  background: linear-gradient(135deg, #fff8d6, #fff);
  border: 1px solid rgba(245, 197, 24, 0.45);
  border-radius: var(--radius);
  padding: 16px;
}

.related-box h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

/* Article pages */
.page-hero {
  padding: 26px 0 10px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 5vw, 2rem);
  line-height: 1.3;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
}

.prose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.prose h2 {
  margin: 1.4em 0 0.5em;
  font-size: 1.2rem;
}

.prose h2:first-child { margin-top: 0; }

.prose p,
.prose li {
  color: #444;
  font-size: 0.95rem;
}

.prose ul {
  padding-left: 1.2em;
}

/* Floating bar */
.float-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  background: rgba(255, 253, 246, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(245, 197, 24, 0.4);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}

.float-bar.show {
  transform: translateY(0);
}

.float-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: flex;
  gap: 8px;
}

.float-inner .btn {
  flex: 1;
  min-height: 46px;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  margin-top: 20px;
  padding: 28px 0 20px;
  background: #1a1a1a;
  color: #ddd;
}

.site-footer a { color: #ffe38a; }

.disclaimer {
  background: linear-gradient(90deg, #ffef9a, #fff6cc);
  color: #5c4300;
  border: 2px solid #f0c400;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 800;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(245, 197, 24, 0.25);
}

.stats-line {
  text-align: center;
  font-size: 0.9rem;
  color: #bbb;
  margin: 0 0 14px;
}

.stats-line strong {
  color: var(--brand);
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumb a { color: #8a6a00; }

@media (min-width: 768px) {
  body { padding-bottom: calc(96px + var(--safe-bottom)); }

  .nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }

  .hero {
    padding: 48px 0 28px;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-row .btn {
    flex: 0 1 auto;
    min-width: 180px;
  }

  .phone-frame {
    width: min(300px, 100%);
  }
}

@media (max-width: 480px) {
  .shot-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }

  .shot-grid figcaption {
    display: none;
  }
}
