/* 小日常 (XiaoRiChang) – warm minimal theme */
:root {
  --bg: #fafafa;
  --fg: #1a1a1a;
  --muted: #5c5c5c;
  --border: #ececec;
  --accent: #f5b800;        /* warm yellow (logo color) */
  --accent-hover: #d99e00;
  --accent-deep: #1a2444;   /* logo dark navy */
  --card-bg: #fff;
  --radius: 14px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "PingFang TC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--fg);
  text-decoration: none;
}

.nav-logo-img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-lang {
  position: relative;
}

.nav-lang select {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}

/* Hero */
.hero {
  position: relative;
  padding: 90px 24px 80px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 184, 0, 0.18), transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(26, 36, 68, 0.10), transparent 55%),
    linear-gradient(to bottom, #fffaef 0%, #fafafa 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(245, 184, 0, 0.22), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-logo {
  display: block;
  margin: 0 auto 24px;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow:
    0 12px 40px rgba(245, 184, 0, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero h1 {
  font-size: 3.6rem;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-deep);
}

.hero-tagline {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.hero p {
  font-size: 1.35rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-deep);
  color: #fff;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.12s, opacity 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow: 0 8px 20px rgba(26, 36, 68, 0.25);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.btn-google-play {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--accent-deep);
  border: none;
}

.btn-google-play:hover {
  background: linear-gradient(135deg, var(--accent-hover), #b88600);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 184, 0, 0.45);
}

/* Video Section */
.video-section {
  padding: 70px 0 50px;
  background: linear-gradient(to bottom, #fafafa, #fff);
  text-align: center;
}

.video-section .container {
  max-width: 720px;
}

.video-section h2 {
  font-size: 2.2rem;
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--accent-deep);
}

.video-section p {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 32px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(26, 36, 68, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.10);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Module Sections */
.module {
  padding: 70px 0;
  border-bottom: 1px solid var(--border);
}

.module:last-of-type {
  border-bottom: none;
}

.module-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 64px;
}

.module--reverse .module-inner {
  flex-direction: row-reverse;
}

.module-content {
  flex: 1;
  min-width: 280px;
}

.module-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Phone-frame style for module screenshots */
.module-img {
  display: block;
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 32px;
  background: #111;
  padding: 8px;
  box-shadow:
    0 30px 60px rgba(26, 36, 68, 0.18),
    0 10px 20px rgba(0, 0, 0, 0.08),
    inset 0 0 0 2px rgba(255, 255, 255, 0.05);
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.module-img:hover {
  transform: translateY(-4px);
  box-shadow:
    0 40px 80px rgba(26, 36, 68, 0.25),
    0 12px 28px rgba(0, 0, 0, 0.10);
}

/* Typography */
.module-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-hover);
  background: rgba(245, 184, 0, 0.14);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.module-headline {
  font-size: 2.4rem;
  margin: 0 0 18px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--accent-deep);
}

.module-desc {
  font-size: 1.18rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

.module-desc strong {
  color: var(--accent-deep);
  font-weight: 600;
  background: linear-gradient(to top, rgba(245, 184, 0, 0.35) 30%, transparent 30%);
  padding: 0 2px;
}

/* Trust strip */
.trust-strip {
  background: var(--accent-deep);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
}

.trust-strip-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 60px;
}

.trust-item {
  font-size: 1.05rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.trust-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

/* CTA bottom */
.cta-bottom {
  padding: 80px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 184, 0, 0.18), transparent 60%),
    var(--bg);
}

.cta-bottom h2 {
  font-size: 2.4rem;
  margin: 0 0 14px;
  color: var(--accent-deep);
  font-weight: 700;
}

.cta-bottom p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 28px;
}

/* Download Page */
.page {
  padding: 40px 0 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent-deep);
  text-decoration: none;
}

.download-intro {
  margin-bottom: 40px;
}

.download-intro h1 {
  font-size: 2.5rem;
  margin: 0 0 8px;
  color: var(--accent-deep);
}

.download-intro p {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 22px;
}

.platform-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(26, 36, 68, 0.10);
}

.platform-card h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  color: var(--accent-deep);
}

.platform-card p {
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 1rem;
  flex: 1;
}

.platform-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.platform-actions .btn {
  flex: 1;
  font-size: 0.95rem;
  padding: 12px 20px;
  white-space: nowrap;
}

/* Page meta (privacy/terms) */
.page h1 {
  color: var(--accent-deep);
  font-size: 2.2rem;
  margin: 0 0 8px;
}

.page h2 {
  color: var(--accent-deep);
  margin-top: 32px;
  font-size: 1.4rem;
}

.page-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* Footer */
.footer {
  padding: 56px 24px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--card-bg);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.footer p {
  color: #999;
  font-size: 0.85rem;
  margin: 0;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal h3 {
  margin-top: 0;
  color: var(--accent-deep);
}

.modal button {
  margin-top: 20px;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 40px;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 2010;
}

.lightbox-close:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .module-inner {
    flex-direction: column;
    text-align: center;
    gap: 36px;
  }

  .module--reverse .module-inner {
    flex-direction: column;
  }

  .module-inner > .module-visual {
    order: -1;
  }

  .module-headline {
    font-size: 1.7rem;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .video-section h2,
  .cta-bottom h2 {
    font-size: 1.7rem;
  }

  .nav-inner {
    justify-content: center;
  }

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