/* === LeeYang Hub — 極簡白主題 ===
   靈感：Aesop / 無印良品調性
   配色：純黑白灰，零彩色
*/

/* === DESIGN TOKENS === */
:root {
  --bg: #ffffff;
  --fg: #1A1A1A;
  --fg-muted: #444444;
  --fg-light: #666666;
  --accent: #000000;
  --accent-light: #333333;
  --accent-bg: #FAFAFA;
  --border: #e5e5e5;
  --border-dark: #D0D0D0;

  /* Grey tones for non-CTA accent usage */
  --accent-subtle: #888888;

  --font-serif: 'Noto Serif TC', 'Songti SC', Georgia, serif;
  --font-sans: 'Noto Sans TC', 'PingFang TC', 'Heiti TC', -apple-system, sans-serif;

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-2xl: 14rem;

  --max-w: 1160px;
  --nav-h: 64px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.95;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Global focus reset — no blue outline; use grey ring consistent with B&W palette */
a:focus, a:focus-visible,
button:focus, button:focus-visible {
  outline: none;
}
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-hero-primary:focus-visible,
.btn-hero-secondary:focus-visible,
.nav-cta:focus-visible,
.guide-cta-btn:focus-visible,
.btn-submit:focus-visible {
  box-shadow: 0 0 0 2px #888;
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   NAVIGATION — 64px fixed top
   ======================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
}

.nav-logo em {
  font-style: normal;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav-link {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  letter-spacing: 0.03em;
  transition: color 0.25s var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--fg);
  transition: width 0.3s var(--ease);
}

.nav-link:hover { color: var(--fg); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  display: inline-block;
  padding: 0.45em 1.2em;
  background: #000;
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 2px;
  border: 1px solid #000;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #fff; color: #000 !important; }

/* Nav social icons */
.nav-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.nav-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  color: var(--fg-light);
  transition: color 0.25s var(--ease);
}

.nav-social-icon:hover { color: #1A1A1A; color: var(--fg); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fg);
  transition: all 0.3s var(--ease);
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-sm) var(--space-md) var(--space-md);
    border-bottom: 1px solid var(--border);
    gap: 0;
  }
  .site-nav.open .nav-links { display: flex; }
  .site-nav.open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 4px); }
  .site-nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-nav.open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -4px); }
  /* Touch-friendly mobile nav links — 48px min tap target */
  .nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 0.9rem;
  }
  .nav-cta {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-xs);
    font-size: 0.875rem;
  }
  .nav-social {
    border-left: none;
    margin-left: 0;
    padding-left: 0;
    padding-top: var(--space-xs);
    border-top: 1px solid var(--border);
    width: 100%;
  }
}

/* ========================================
   HERO — Full viewport, dark overlay
   ======================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #FAFAFA;
}

/* No overlay needed on light background */
.hero-overlay {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-content {
  padding: var(--space-lg) 0;
}

.hero-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-light);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.35;
  color: #1A1A1A;
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.hero-title span {
  display: block;
}

.hero-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn-hero-primary {
  display: inline-block;
  padding: 0.85em 2em;
  background: #000;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid #000;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-hero-primary:hover { background: #fff; color: #000; }

.btn-hero-secondary {
  display: inline-block;
  padding: 0.85em 2em;
  background: #fff;
  color: #000;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid #000;
  border-radius: 2px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-hero-secondary:hover {
  background: #000;
  color: #fff;
}

/* Portrait — real photo */
.hero-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-portrait-img {
  width: 380px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 2px;
  object-fit: cover;
  object-position: center 20%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--border-dark), transparent);
  animation: scrollHint 2s ease-in-out infinite;
}

.scroll-hint-text {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-light);
}

@keyframes scrollHint {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-portrait { display: none; }
  .hero-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  /* Touch-friendly hero CTAs on mobile */
  .btn-hero-primary,
  .btn-hero-secondary {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
  }
  .hero-ctas {
    flex-direction: column;
  }
}

/* ========================================
   NUMBERS WALL — quantified credibility strip
   ======================================== */
.numbers-wall {
  padding: var(--space-lg) var(--space-md);
  background: var(--fg);
  color: var(--bg);
}

.numbers-wall-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-sm);
  text-align: center;
}

.nw-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: var(--space-sm) 0;
}

.nw-number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.nw-unit {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.15em;
}

.nw-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
  margin-top: 0.1em;
}

@media (max-width: 960px) {
  .numbers-wall-inner { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .numbers-wall-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
}

/* ========================================
   CHENCLEAN BRAND SECTION
   ======================================== */
.chenclean {
  padding: var(--space-2xl) var(--space-md);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.chenclean-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-subtle);
  margin-bottom: var(--space-md);
}

.chenclean-h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.4;
  color: var(--fg);
  margin-bottom: var(--space-xl);
}

.chenclean-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: stretch;
  margin-bottom: 0;
}

.chenclean-img-wrap {
  position: relative;
  background: var(--accent-bg);
  border-radius: 2px;
  overflow: hidden;
  height: 100%;
}

/* Store photos container — match text column height */
.chenclean-photos {
  align-self: stretch;
}

.chenclean-store-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.chenclean-img-secondary {
  margin-top: var(--space-sm);
}

.chenclean-text {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.chenclean-intro {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 2;
  margin-bottom: var(--space-sm);
}

.chenclean-intro strong {
  color: var(--fg);
  font-weight: 500;
}

.chenclean-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  padding: var(--space-md);
  background: var(--accent-bg);
  border-left: 3px solid var(--border-dark);
  margin: var(--space-md) 0;
  border-radius: 0 2px 2px 0;
}

.chenclean-divider {
  border: none;
  border-top: 1px solid var(--border, #e0e0e0);
  margin: var(--space-md) 0;
}

.chenclean-stats {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 0;
}

.chenclean-stat {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-sm) 0;
}

.chenclean-stat-number {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  text-align: center;
}

.chenclean-stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  margin-top: 0.3em;
  text-align: center;
}

/* Store info card */
.chenclean-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.store-card {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.store-card-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-subtle);
  margin-bottom: var(--space-xs);
}

.store-card p {
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.6;
}

/* Google Maps */
.chenclean-map {
  width: 100%;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.chenclean-map iframe {
  width: 100%;
  height: 280px;
  border: none;
  display: block;
}

@media (max-width: 860px) {
  .chenclean-body { grid-template-columns: 1fr; }
  .chenclean-info { grid-template-columns: 1fr; }
}


/* ========================================
   SHARED SECTION STYLES (origin, chenclean, etc.)
   ======================================== */
.section-pad {
  padding: var(--space-2xl) var(--space-md);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Section divider */
.section-divider {
  width: 40px;
  height: 1px;
  background: var(--border-dark);
  margin: var(--space-md) 0;
}

/* ========================================
   ORIGIN SECTION
   ======================================== */
.origin {
  padding: var(--space-2xl) var(--space-md);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.origin-inner { max-width: var(--max-w); margin: 0 auto; }

.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.origin-text h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.4;
  margin-bottom: var(--space-lg);
}

.origin-text p {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 2;
  margin-bottom: var(--space-sm);
  max-width: 520px;
}

.origin-visual {}


/* Global grayscale-to-color + scale hover effect — secondary content images.
   Excludes hero-portrait-img (hero stays full color) and nav-logo-img (too small). */
.chenclean-store-img,
.book-cover-img,
.guide-card-logo img {
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.chenclean-store-img:hover,
.book-cover-img:hover,
.guide-card-logo img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}
.hero-portrait-img {
  transition: transform 0.3s ease;
}
.hero-portrait-img:hover {
  transform: scale(1.05);
}
/* Legacy class kept for templates that use it */
.hover-color {
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.hover-color:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Container must clip scaled image */
.chenclean-img-wrap,
.hero-portrait,
.book-cover-wrap,
.guide-card-logo {
  overflow: hidden;
}

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

/* ========================================
   NEW TIMELINE (tl-new) — origin section
   ======================================== */
.tl-new {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 0;
  border-left: none;
}

.tl-new-item {
  position: relative;
  padding: var(--space-sm) 0 var(--space-sm) var(--space-lg);
  border-left: 1px solid var(--border-dark);
}

.tl-new-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg-muted);
}

.tl-new-year {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #333333;
  margin-bottom: 0.2em;
}

.tl-new-desc {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .tl-new-item { padding-left: var(--space-md); }
}


/* ========================================
   PRESS WALL — stylized text-only media endorsement strip
   ======================================== */
.press-wall {
  padding: var(--space-lg) var(--space-md);
  background: #f5f5f5;
}

.press-wall-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.press-wall-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 2rem;
}

.press-wall-logos {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
}

.press-logo {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #666;
  text-decoration: none;
  transition: color 0.25s var(--ease);
  white-space: nowrap;
  position: relative;
  padding: 0 var(--space-xs);
}

/* Chinese media names — no uppercase, slightly different tracking */
.press-logo-zh {
  text-transform: none;
  letter-spacing: 0.12em;
}

.press-logo:hover {
  color: var(--fg);
}

/* "Magazine" sub-text for A Day */
.press-logo-sub {
  display: block;
  font-size: 0.65em;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: -0.15em;
}

@media (max-width: 600px) {
  .press-wall-logos {
    justify-content: space-evenly;
    gap: var(--space-sm) 0;
    width: 100%;
  }
  .press-logo {
    font-size: 0.95rem;
    width: 50%;
    text-align: center;
    box-sizing: border-box;
  }
}


/* ========================================
   PHILOSOPHY PILLARS
   ======================================== */
.philosophy {
  padding: var(--space-2xl) var(--space-md);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.philosophy-inner { max-width: var(--max-w); margin: 0 auto; }

.philosophy-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.pillar {
  padding: var(--space-lg) var(--space-md);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.pillar-icon {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--fg-muted);
  margin-bottom: var(--space-md);
  font-weight: 400;
}

.pillar h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  color: var(--fg);
}

.pillar p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.9;
}

@media (max-width: 860px) {
  .philosophy-pillars { grid-template-columns: 1fr; }
}

/* ========================================
   CHAPTERS (BOOK)
   ======================================== */
.chapters {
  padding: var(--space-lg) var(--space-md) var(--space-2xl);
  background: var(--accent-bg);
  border-bottom: 1px solid var(--border);
}

.chapters-inner { max-width: var(--max-w); margin: 0 auto; }
.chapters .section-label { margin-bottom: var(--space-sm); }

.book-showcase {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.book-visual { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); }

.book-cover-wrap {
  overflow: hidden;
  border-radius: 2px;
  box-shadow: -6px 6px 20px rgba(0,0,0,0.25);
}

.book-cover-img {
  width: 360px;
  max-width: 100%;
  height: auto;
  display: block;
  box-shadow: none;
}


.book-text h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.3;
  margin-bottom: var(--space-md);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .book-text h2 { white-space: normal; }
}

.book-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--fg-muted);
  margin-bottom: var(--space-lg);
  padding-left: var(--space-sm);
  border-left: 1px solid var(--border-dark);
  line-height: 1.8;
}

.book-text p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 2;
  margin-bottom: var(--space-sm);
  max-width: 520px;
}


.book-publisher {
  font-size: 0.82rem;
  color: var(--fg-light);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.book-cta {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6em;
}

.book-link-secondary {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease);
}
.book-link-secondary:hover { color: var(--fg); }

@media (max-width: 860px) {
  .book-showcase { grid-template-columns: 1fr; text-align: center; }
  .book-cover-img { width: 240px; }
  .book-quote { border-left: none; padding-left: 0; border-top: 2px solid #000; padding-top: var(--space-sm); }
  .book-text p { max-width: none; }
  .book-cta { align-items: center; }
}

/* ========================================
   SELECTION GUIDE
   ======================================== */
.selection-guide {
  padding: var(--space-2xl) var(--space-md);
  background: var(--accent-bg);
  border-bottom: 1px solid var(--border);
}

.guide-inner { max-width: var(--max-w); margin: 0 auto; }

.guide-h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.4;
  margin-bottom: var(--space-md);
  text-align: center;
}

.guide-intro {
  font-size: 0.95rem;
  color: var(--fg-muted);
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-lg);
  line-height: 1.9;
}

.guide-dimensions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.dimension {
  padding: var(--space-md);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  text-align: center;
}

.dimension-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  margin-bottom: var(--space-xs);
}

.dimension-desc {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

.star-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.star-item {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.star-label { font-size: 0.82rem; color: var(--fg-muted); }

/* 辰字篆刻印章 */
.chen-stamps { display: flex; gap: 4px; }
.chen-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  border: 1.5px solid #000;
  border-radius: 2px;
  line-height: 1;
  font-family: var(--font-serif);
}

/* 嚴選店家卡片 */
.guide-store-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  max-width: 460px;
  margin: 0 auto var(--space-sm);
  padding: var(--space-md);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.guide-card-logo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--accent-bg);
}

.guide-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guide-card-body {
  flex: 1;
  min-width: 0;
}

.guide-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xs);
  margin-bottom: 0.4em;
  flex-wrap: wrap;
}

.guide-card-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.4;
}

.guide-card-rating {
  display: flex;
  align-items: center;
  gap: 0.4em;
  flex-shrink: 0;
}

.rating-label {
  font-size: 0.72rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

.guide-card-service {
  font-size: 0.82rem;
  color: var(--fg-light);
}

@media (max-width: 480px) {
  .guide-store-card { flex-direction: column; align-items: flex-start; }
}

/* 嚴選名單預告 */
.guide-coming-soon {
  text-align: center;
  font-size: 14px;
  color: #888888;
  padding: 1rem 0;
}

.guide-disclaimer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--fg-light);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.guide-cta { text-align: center; }

.guide-cta-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--fg);
  margin-bottom: var(--space-sm);
}

.guide-cta-btn {
  display: inline-block;
  max-width: 300px;
  width: 100%;
  padding: 0.85em 1.5em;
  background: #000;
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid #000;
  text-align: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.guide-cta-btn:hover { background: #fff; color: #000; }

@media (max-width: 860px) {
  .guide-dimensions { grid-template-columns: 1fr; }
}

/* ========================================
   CLOSING — Brand consultant contact block
   ======================================== */
.closing {
  padding: var(--space-xl) var(--space-md);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

/* 合作項目 */
.closing-cooperation {
  text-align: center;
}

.coop-label {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-subtle);
  margin-bottom: var(--space-sm);
}

.coop-types {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--fg);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* 聯絡方式 */
.closing-contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* Email + 電話 */
.contact-details {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.contact-detail-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.88rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.contact-detail-item:hover { color: var(--fg); }

.contact-icon {
  font-size: 0.75rem;
  opacity: 0.6;
}




@media (max-width: 600px) {
  .contact-details { flex-direction: column; align-items: center; gap: var(--space-xs); }
  /* Touch-friendly tap targets on mobile */
  .contact-detail-item { min-height: 44px; display: inline-flex; align-items: center; }
  .closing-line-btn { min-height: 48px; }
  .btn-primary, .btn-secondary { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
  .guide-cta-btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
}

/* ========================================
   FOOTER — minimal copyright line
   ======================================== */
.site-footer {
  padding: var(--space-md) var(--space-md);
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.footer-copy {
  font-size: 0.8125rem;
  color: #999;
  letter-spacing: 0.04em;
}

/* ========================================
   SHARED BUTTONS
   ======================================== */

/* Global focus reset — remove browser blue outline; grey ring for keyboard focus */
.btn-primary:focus,
.btn-secondary:focus,
.btn-hero-primary:focus,
.btn-hero-secondary:focus,
.nav-cta:focus,
.guide-cta-btn:focus { outline: none; }

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-hero-primary:focus-visible,
.btn-hero-secondary:focus-visible,
.nav-cta:focus-visible,
.guide-cta-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px #888; }

.btn-primary {
  display: inline-block;
  background: #000;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.75em 2em;
  text-decoration: none;
  border: 1px solid #000;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-primary:hover { background: #fff; color: #000; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #000;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.75em 2em;
  text-decoration: none;
  border: 1px solid #000;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-secondary:hover { background: #000; color: #fff; }

.cta-buttons { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; }


/* ========================================
   ENDING BLOCK — unified closing CTA
   ======================================== */
.ending-block {
  padding: var(--space-xl) var(--space-md);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.ending-block-inner {
  max-width: 680px;
  margin: 0 auto;
}

.ending-block-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-subtle);
  margin-bottom: var(--space-sm);
}

.ending-block-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.4;
  color: var(--fg);
  margin-bottom: var(--space-sm);
}

.ending-block-desc {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.9;
  margin-bottom: var(--space-md);
}

.ending-block-ctas {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.ending-divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 200px;
  margin: var(--space-lg) auto;
}

.ending-contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.ending-contact-sep {
  color: var(--border-dark);
  user-select: none;
}

.ending-contact-link {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.ending-contact-link:hover { color: var(--fg); }

@media (max-width: 600px) {
  .ending-block-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .ending-block-ctas .btn-primary,
  .ending-block-ctas .btn-secondary {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
  }
  .footer-copy { font-size: 0.875rem; }
  /* Contact row — stack vertically on narrow screens */
  .ending-contact-row {
    flex-direction: column;
    gap: 0.4rem;
  }
  .ending-contact-sep { display: none; }
  .ending-contact-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  /* Reduce excessive vertical padding on mobile — 14rem → 4rem */
  .section-pad { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
  .chenclean { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
  .origin { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
  .selection-guide { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
  .closing { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
  .ending-block { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
  .philosophy { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
  .chapters { padding-top: var(--space-md); padding-bottom: var(--space-lg); }
  /* Section heading margin reduction */
  .chenclean-h2 { margin-bottom: var(--space-lg); }
  /* Numbers wall — tighter on mobile */
  .numbers-wall { padding: var(--space-md) var(--space-sm); }
  .nw-number { font-size: clamp(1.5rem, 8vw, 2rem); }
  .nw-item { padding: var(--space-xs) 0; }
  /* Press wall — tighter on mobile */
  .press-wall { padding: var(--space-md) var(--space-sm); }
}

/* === NEWSLETTER SECTION === */
.newsletter {
  padding: var(--space-lg) var(--space-sm);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.newsletter-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  margin-bottom: var(--space-xs);
  font-weight: 400;
}

.newsletter-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: var(--space-sm);
  line-height: 1.35;
}

.newsletter-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.newsletter-fields {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-input {
  flex: 1;
  min-width: 180px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  border-radius: 0;
  transition: border-color 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.newsletter-input:focus {
  outline: none;
  border-color: var(--fg);
}
.newsletter-input::placeholder {
  color: var(--fg-light);
}

.newsletter-btn {
  padding: 0.65rem 1.5rem;
  background: var(--fg);
  color: var(--bg);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.newsletter-btn:hover { background: var(--accent-light); }
.newsletter-btn:active { transform: scale(0.98); }
.newsletter-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.newsletter-msg {
  font-size: 0.82rem;
  min-height: 1.2em;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.newsletter-msg.success { color: #2d7d46; }
.newsletter-msg.error { color: #b91c1c; }

.newsletter-privacy {
  font-size: 0.75rem;
  color: var(--fg-light);
  margin-top: var(--space-xs);
}

@media (max-width: 600px) {
  .newsletter-fields { flex-direction: column; }
  .newsletter-input, .newsletter-btn { width: 100%; min-width: 0; }
  .newsletter-btn { min-height: 48px; }
  .newsletter { padding: var(--space-md) var(--space-sm); }
}

/* Closing section — consulting page link */
.closing-consult-link {
  font-size: 0.88rem;
  color: var(--fg-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s var(--ease);
}
.closing-consult-link:hover { color: var(--fg); }


