/* 慢生活咖啡 · 治愈系咖啡馆 - 网站样式 */

:root {
  --bg-cream: #FDFBF7;
  --bg-paper: #F5F0E8;
  --coffee-dark: #3E3325;
  --coffee-brown: #A67C52;
  --coffee-light: #D4B896;
  --sage: #6B8E6E;
  --text-muted: #7A6F61;
  --white: #FFFFFF;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(62, 51, 37, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background-color: var(--bg-cream);
  color: var(--coffee-dark);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--coffee-brown);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--sage);
}

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

/* Header */
.site-header {
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(166, 124, 82, 0.12);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--coffee-dark);
  letter-spacing: -0.02em;
}

.nav-links a {
  margin-left: 28px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--coffee-brown);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(166, 124, 82, 0.25);
}

.btn-primary:hover {
  background: #8f6844;
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--coffee-brown);
  border: 1px solid var(--coffee-light);
}

.btn-secondary:hover {
  background: var(--bg-paper);
  color: var(--coffee-dark);
}

/* Hero */
.hero {
  padding: 100px 0 90px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-paper) 100%);
}

.tagline {
  color: var(--coffee-brown);
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.25;
  margin-bottom: 24px;
  font-weight: 700;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
}

.hero-actions .btn {
  margin: 8px;
}

/* Features */
.features {
  padding: 60px 0 90px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card h2 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: var(--coffee-dark);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Page header */
.page-header {
  padding: 80px 0 40px;
  text-align: center;
  background: var(--bg-paper);
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.page-header p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 50px 0 80px;
}

.gallery-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.placeholder-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--bg-paper) 0%, var(--coffee-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coffee-dark);
  font-weight: 600;
  font-size: 1.1rem;
}

.gallery-item figcaption {
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Download steps */
.download-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  padding: 60px 0 90px;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--coffee-brown);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 18px;
}

.step h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.qr-placeholder {
  border: 2px dashed var(--coffee-light);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  color: var(--coffee-brown);
  background: var(--bg-paper);
}

.qr-placeholder img {
  max-width: 100%;
  border-radius: 8px;
}

/* CTA sections */
.cta-section {
  background: var(--coffee-dark);
  color: var(--bg-cream);
  text-align: center;
  padding: 80px 24px;
}

.cta-section h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.cta-section p {
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 28px;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--coffee-dark);
}

.cta-section .btn-primary:hover {
  background: var(--bg-paper);
}

.cta-muted {
  background: var(--bg-paper);
  color: var(--coffee-dark);
}

.cta-muted p {
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--coffee-dark);
  color: var(--bg-cream);
  padding: 40px 24px;
  text-align: center;
}

.site-footer a {
  color: var(--coffee-light);
}

.site-footer a:hover {
  color: var(--white);
}

.copyright-note {
  margin-top: 12px;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* Mobile */
@media (max-width: 600px) {
  .nav {
    height: 64px;
  }

  .nav-links a {
    margin-left: 16px;
    font-size: 0.88rem;
  }

  .hero {
    padding: 70px 0 60px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}
