/* 橙子微信小程序 — 落地页样式 */
:root {
  --bg: #faf8f5;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5c5c7a;
  --border: rgba(26, 26, 46, 0.08);
  --orange: #ff8c42;
  --orange-soft: #fff4ec;
  --accent: #ff8c42;
  --shadow: 0 8px 32px rgba(26, 26, 46, 0.08);
  --radius: 16px;
  --max-w: 1120px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links .is-active a {
  color: var(--accent, var(--orange));
  background: var(--orange-soft);
  text-decoration: none;
}

.nav-links .is-active a {
  font-weight: 600;
}

.header-nav {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 auto;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* Sections */
.section {
  padding: 2rem 0 3rem;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  text-align: center;
}

.section-desc {
  margin: 0 auto 2rem;
  max-width: 36rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* 首页导航卡片 */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.nav-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.12);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
  text-decoration: none;
}

.nav-card-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.nav-card-name {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  color: var(--accent, var(--orange));
}

.nav-card-tagline {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-card-summary {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.nav-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent, var(--orange));
}

/* 产品详情页 */
.product-page {
  padding: 1.5rem 0 3rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent, var(--orange));
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
}

.product-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.product-hero-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.product-hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--accent, var(--orange));
}

.product-tagline {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-description {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.product-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.product-section h2 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
}

.product-features,
.product-highlights {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text);
}

.product-features li,
.product-highlights li {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.product-highlights li {
  color: var(--text-muted);
}

.product-sidebar {
  position: sticky;
  top: 5rem;
}

.product-action-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.qr-wrap {
  display: inline-flex;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.qr-box {
  width: 180px;
  height: 180px;
}

.qr-box img,
.qr-box canvas {
  display: block;
  border-radius: 6px;
}

.qr-wrap--mobile {
  margin-bottom: 1rem;
}

.btn-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 10px;
  background: var(--accent, var(--orange));
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-open:hover {
  filter: brightness(1.05);
  text-decoration: none !important;
}

.action-hint {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

/* Device visibility */
.is-mobile .desktop-only {
  display: none !important;
}

.is-desktop .mobile-only {
  display: none !important;
}

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .nav-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .header-inner {
    align-items: flex-start;
  }

  .product-main {
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-card:hover,
  .btn-open:hover {
    transform: none;
  }
}
