/* 黔聊官网 · 0859.life — Forest + Terracotta palette */

:root {
  --canvas: #f4f6f2;
  --surface: #ffffff;
  --ink: #1a2118;
  --ink-muted: #5c6658;
  --ink-faint: #8a9486;
  --border: rgba(26, 33, 24, 0.08);
  --forest: #2d4a3e;
  --forest-deep: #1e3329;
  --terracotta: #c45c3a;
  --terracotta-hover: #a84d30;
  --sage: #e8efe6;
  --sage-deep: #d4e0d0;
  --radius: 12px;
  --radius-sm: 6px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "SF Pro Display", system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 68px;
  --container: min(1120px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--forest);
  color: #fff;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(244, 246, 242, 0.88);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--canvas);
    backdrop-filter: none;
  }
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
}

.brand-wordmark {
  display: block;
  width: auto;
  height: 2rem;
}

.brand-wordmark-footer {
  height: 1.5rem;
  margin-bottom: 0.35rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--forest);
  color: #fff !important;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}

.nav-cta:hover {
  background: var(--forest-deep);
}

.nav-cta:active {
  transform: scale(0.98);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s, transform 0.15s var(--ease), border-color 0.2s;
  white-space: nowrap;
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: rgba(26, 33, 24, 0.2);
  background: var(--surface);
}

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

/* Hero */
.hero {
  padding: 2rem 0 4rem;
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
}

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

.hero-label {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--forest-deep);
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 38ch;
  color: var(--ink-muted);
  font-size: 1.0625rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: #fff;
  background: rgba(30, 51, 41, 0.72);
  border-radius: 4px;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 1.5rem;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 0;
  }

  .hero-figure img {
    aspect-ratio: 16 / 10;
  }
}

/* Stats */
.stats {
  padding: 2.5rem 0;
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--forest);
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

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

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head h2,
.travel-copy h2,
.culture-copy h2,
.ai-demo-text h2,
.download-copy h2,
#qxn-title,
#local-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--forest-deep);
}

.section-head p,
.travel-copy > p,
.culture-copy > p,
.ai-demo-text p,
.download-copy > p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 52ch;
}

/* Travel split */
.travel-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.travel-media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.feature-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
}

@media (max-width: 768px) {
  .travel-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Local life grid */
.section-local-life {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.life-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.life-card {
  padding: 1.5rem 1.75rem;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.life-card-accent {
  background: var(--sage);
  border-color: rgba(45, 74, 62, 0.12);
}

.life-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.85rem;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--forest);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.life-card-accent .life-card-icon {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

.life-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--forest-deep);
}

.life-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

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

/* Qianxinan gallery */
.section-qianxinan {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.qxn-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: 0.75rem;
}

.qxn-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.qxn-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.qxn-card:hover img {
  transform: scale(1.03);
}

.qxn-card figcaption {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  color: #fff;
  background: rgba(30, 51, 41, 0.78);
  border-radius: 4px;
}

.qxn-card-hero {
  grid-column: span 7;
  grid-row: span 2;
}

.qxn-card:nth-child(2) {
  grid-column: span 5;
}

.qxn-card:nth-child(3) {
  grid-column: span 5;
}

.qxn-card:nth-child(4) {
  grid-column: span 4;
}

.qxn-card-wide {
  grid-column: span 8;
}

.qxn-spots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 2rem;
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.qxn-spots li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.qxn-spots li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--forest);
}

@media (max-width: 768px) {
  .qxn-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .qxn-card-hero,
  .qxn-card:nth-child(2),
  .qxn-card:nth-child(3),
  .qxn-card:nth-child(4),
  .qxn-card-wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .qxn-card {
    min-height: 220px;
  }

  .qxn-spots {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qxn-card img {
    transition: none;
  }

  .qxn-card:hover img {
    transform: none;
  }
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.bento-cell {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.bento-cell h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--forest-deep);
}

.bento-cell p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.bento-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  color: var(--terracotta);
}

.bento-icon svg {
  width: 100%;
  height: 100%;
}

.bento-sojourn {
  background: var(--sage);
}

.bento-highlight {
  background: linear-gradient(145deg, #e8efe6 0%, var(--surface) 100%);
  border-color: rgba(45, 74, 62, 0.15);
}

.bento-food {
  background: #faf8f5;
}

.bento-ai {
  background: linear-gradient(145deg, #eef2ed 0%, var(--surface) 100%);
}

.bento-wide {
  grid-column: span 2;
  padding: 0;
  min-height: 220px;
}

.bento-wide img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.bento-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(to top, rgba(30, 51, 41, 0.88) 0%, transparent 100%);
  color: #fff;
}

.bento-overlay h3 {
  color: #fff;
}

.bento-overlay p {
  color: rgba(255, 255, 255, 0.85);
}

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

  .bento-wide {
    grid-column: span 1;
  }
}

.bento-six {
  grid-template-rows: auto auto;
}

.bento-six .bento-wide {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .bento-six .bento-wide {
    grid-column: span 1;
  }
}

/* Culture */
.culture-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.tag {
  padding: 0.3rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}

.tag-red {
  background: #fdebec;
  color: #9f2f2d;
}

.tag-blue {
  background: #e1f3fe;
  color: #1f6c9f;
}

.tag-green {
  background: #edf3ec;
  color: #346538;
}

.tag-yellow {
  background: #fbf3db;
  color: #956400;
}

.culture-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.culture-gallery img:first-child {
  grid-row: span 2;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
  height: 100%;
  min-height: 280px;
}

.culture-secondary {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
  aspect-ratio: 7 / 5;
}

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

  .culture-gallery {
    grid-template-columns: 1fr;
  }

  .culture-gallery img:first-child {
    grid-row: auto;
    min-height: 200px;
  }
}

/* AI demo */
.section-ai-demo {
  background: var(--forest-deep);
  color: #fff;
}

.ai-demo {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.section-ai-demo h2 {
  color: #fff;
}

.section-ai-demo .ai-demo-text p {
  color: rgba(255, 255, 255, 0.72);
}

.ai-chat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-bubble {
  max-width: 90%;
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  border-radius: var(--radius);
}

.chat-user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-ai {
  align-self: flex-start;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

@media (max-width: 768px) {
  .ai-demo {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Quote */
.section-quote {
  padding: 4rem 0;
  background: var(--sage);
}

.quote-block {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.quote-block blockquote {
  margin: 0;
}

.quote-block blockquote p {
  margin: 0;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.55;
  color: var(--forest-deep);
  letter-spacing: -0.01em;
}

.quote-block footer {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.quote-block cite {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 0.2rem;
}

/* Download */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 1rem;
}

.store-btn {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 1.25rem;
  min-width: 10rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease), transform 0.15s;
}

.store-btn:hover {
  background: var(--forest-deep);
}

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

.store-label {
  font-size: 0.625rem;
  opacity: 0.75;
}

.store-name {
  font-size: 1rem;
  font-weight: 600;
}

.store-android {
  background: var(--forest);
}

.download-hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.download-visual img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(30, 51, 41, 0.08);
}

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

  .download-visual {
    order: -1;
    max-width: 280px;
    margin-inline: auto;
  }
}

/* Platform compliance */
.section-platform {
  padding: 4rem 0 5rem;
  background: var(--sage);
  border-top: 1px solid var(--border);
}

.platform-notice h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--forest-deep);
}

.platform-notice-body {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
}

.platform-notice-body p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

.platform-notice-body strong {
  color: var(--ink);
  font-weight: 600;
}

.footer-disclaimer {
  margin-bottom: 0.75rem !important;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.footer-disclaimer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
}

.footer-brand strong {
  display: block;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--ink-muted);
  transition: color 0.2s;
}

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

.footer-legal {
  font-size: 0.75rem;
  color: var(--ink-faint);
  line-height: 1.7;
}

.footer-legal p {
  margin: 0 0 0.35rem;
}

.footer-legal a:hover {
  color: var(--ink-muted);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
