:root {
  --guide-teal: #0d9488;
  --guide-teal-light: #2dd4bf;
  --guide-stone: #1c1917;
  --guide-stone-mid: #292524;
  --guide-cream: #fafaf9;
  --guide-muted: #a8a29e;
}

.home-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.home-guide-card {
  min-width: 0;
  overflow: hidden;
  color: white;
  text-decoration: none;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px;
  transition: transform .25s, border-color .25s;
}
.home-guide-card:hover {
  transform: translateY(-5px);
  border-color: rgba(45,212,191,.55);
}
.home-guide-photo {
  position: relative;
  height: 330px;
  overflow: hidden;
  background: #171412;
}
.home-guide-photo::before {
  content: '';
  position: absolute;
  inset: -16px;
  background-image: var(--guide-image);
  background-size: cover;
  background-position: center;
  filter: blur(14px) brightness(.42);
  transform: scale(1.08);
}
.home-guide-photo img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.home-guide-body { padding: 1.15rem; }
.home-guide-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
  line-height: 1;
}
.home-guide-role {
  color: var(--guide-teal-light);
  font-size: .78rem;
  font-weight: 700;
  margin-top: .45rem;
  min-height: 2.5em;
}
.guide-languages,
.guide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .8rem;
}
.guide-language,
.guide-chip {
  border-radius: 999px;
  padding: .24rem .65rem;
  font-size: .68rem;
  line-height: 1.35;
}
.guide-language {
  color: var(--guide-teal-light);
  border: 1px solid rgba(45,212,191,.38);
  background: rgba(13,148,136,.16);
}
.guide-chip {
  color: #d6d3d1;
  background: rgba(255,255,255,.06);
}
.guides-cta-row { text-align: center; margin-top: 2.25rem; }
.guides-cta {
  display: inline-flex;
  align-items: center;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  color: white;
  background: var(--guide-teal);
  font-weight: 700;
  text-decoration: none;
}
.guides-cta:hover { background: #0f766e; }

.guides-page {
  background: var(--guide-stone);
  color: var(--guide-cream);
  font-family: 'Noto Sans TC', sans-serif;
  margin: 0;
}
.guides-page * { box-sizing: border-box; }
.guides-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15,23,42,.96);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.guides-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: white;
  text-decoration: none;
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
}
.guides-brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  mix-blend-mode: screen;
}
.guides-nav-actions { display: flex; align-items: center; gap: .65rem; }
.guides-nav-link,
.guides-book {
  color: white;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 700;
}
.guides-book {
  padding: .62rem 1rem;
  background: var(--guide-teal);
  border-radius: 999px;
}
.guides-lang {
  display: flex;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  overflow: hidden;
}
.guides-lang button {
  border: 0;
  padding: .35rem .6rem;
  color: #d6d3d1;
  background: transparent;
  cursor: pointer;
}
.guides-lang button.active { color: white; background: rgba(255,255,255,.14); }

.guides-hero {
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(28,25,23,.94)),
    url('https://feegzkbrumieucyweghm.supabase.co/storage/v1/render/image/public/photos/xilin/DSCF7257.JPG?width=1800&quality=80') center/cover;
}
.guides-hero-inner,
.guides-main,
.guide-detail-main {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
}
.guides-hero-inner { padding: 7rem 0 4rem; }
.guides-eyebrow {
  color: var(--guide-teal-light);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .22em;
}
.guides-hero h1,
.guide-detail-copy h1 {
  max-width: 780px;
  margin: .7rem 0 0;
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 1.12;
}
.guides-hero p {
  max-width: 720px;
  margin: 1rem 0 0;
  color: #d6d3d1;
  line-height: 1.8;
}
.guides-hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.guides-primary,
.guides-secondary {
  display: inline-flex;
  padding: .75rem 1.1rem;
  border-radius: 999px;
  color: white;
  text-decoration: none;
  font-weight: 700;
}
.guides-primary { background: var(--guide-teal); }
.guides-secondary { border: 1px solid rgba(255,255,255,.35); }

.trust-band { background: #0f766e; }
.trust-grid {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.3rem 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.trust-item { color: white; font-size: .8rem; font-weight: 700; text-align: center; }
.trust-item span { display: block; font-size: 1.35rem; margin-bottom: .3rem; }

.guides-main { padding: 5rem 0; }
.answer-summary {
  max-width: 850px;
  margin: 0 0 3rem;
  padding: 1.2rem 1.35rem;
  color: #e7e5e4;
  line-height: 1.9;
  background: rgba(13,148,136,.08);
  border-left: 3px solid var(--guide-teal-light);
}
.guides-section-heading { margin-bottom: 2.25rem; }
.guides-section-heading h2 {
  margin: .3rem 0 0;
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
}
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.guide-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--guide-stone-mid);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  transition: transform .25s ease, border-color .25s ease;
}
.guide-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45,212,191,.48);
}
.guide-card-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  flex: 0 0 auto;
  background: #171412;
}
.guide-card-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}
.guide-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.3rem;
}
.guide-card-name {
  margin: 0;
  font-family: 'Bebas Neue', 'Noto Sans TC', sans-serif;
  font-size: 2rem;
  line-height: 1.05;
}
.guide-card-role {
  min-height: 2.8em;
  margin-top: .45rem;
  color: var(--guide-teal-light);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.4;
}
.guide-card .guide-languages {
  min-height: 1.8rem;
}
.guide-card .guide-chips {
  align-content: flex-start;
  min-height: 4.7rem;
  margin-bottom: 1rem;
}
.guide-card .guide-more {
  align-self: flex-start;
  margin-top: auto;
}
.guide-more {
  display: inline-flex;
  margin-top: 1.25rem;
  color: white;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--guide-teal-light);
}
.guide-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1.3rem;
}
.guide-fact {
  padding: .8rem;
  color: #d6d3d1;
  background: rgba(255,255,255,.04);
  border-radius: 6px;
}
.guide-fact dt {
  color: var(--guide-teal-light);
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: .3rem;
}
.guide-fact dd { margin: 0; line-height: 1.6; }

.aeo-section {
  padding: 5rem 0;
  background: var(--guide-cream);
  color: var(--guide-stone);
}
.aeo-inner { width: min(960px, calc(100% - 3rem)); margin: 0 auto; }
.aeo-inner h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.aeo-list { display: grid; gap: .8rem; margin-top: 2rem; }
.aeo-item { padding: 1.2rem; border: 1px solid #e7e5e4; border-radius: 8px; background: white; }
.aeo-item h3 { margin: 0; font-size: 1rem; }
.aeo-item p { margin: .65rem 0 0; color: #57534e; line-height: 1.8; }

.guide-answer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.guide-answer-card {
  padding: 1.2rem;
  background: var(--guide-stone-mid);
  border-top: 3px solid var(--guide-teal);
}
.guide-answer-card h3 { margin: 0 0 .7rem; color: var(--guide-teal-light); }
.guide-answer-card p { margin: 0; color: #d6d3d1; line-height: 1.8; }

.guide-detail-hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(320px, 45%) 1fr;
}
.guide-detail-photo { min-height: 640px; background: #171412; }
.guide-detail-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.guide-detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  background: var(--guide-stone-mid);
}
.guide-detail-role { color: var(--guide-teal-light); font-weight: 700; margin-top: .7rem; }
.guide-detail-quote { color: #d6d3d1; line-height: 1.9; white-space: pre-line; margin-top: 1.4rem; }
.guide-detail-main { padding: 4rem 0 6rem; }
.guide-story { max-width: 820px; color: #d6d3d1; line-height: 2; white-space: pre-line; }
.guide-detail-credentials { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin-top: 2rem; }
.guide-detail-group { padding: 1.2rem; background: var(--guide-stone-mid); border-left: 3px solid var(--guide-teal); }
.guide-detail-group h3 { margin-top: 0; }
.guide-detail-group li { color: #d6d3d1; margin-bottom: .5rem; }
.guide-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 2rem; }
.guide-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.guide-detail-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.guides-footer {
  padding: 2rem 1.5rem;
  color: #78716c;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.07);
}

.wa-widget {
  position: fixed; right: 22px; bottom: 22px; z-index: 9999;
  font-family: 'Noto Sans TC', sans-serif;
}
.wa-float-btn {
  width: 58px; height: 58px; border-radius: 50%; border: 0;
  background: #25d366; color: white; font-size: 1.55rem; cursor: pointer;
  box-shadow: 0 12px 35px rgba(0,0,0,.32);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(0,0,0,.36); }
.wa-panel {
  position: absolute; right: 0; bottom: 76px;
  width: min(360px, calc(100vw - 32px)); overflow: hidden;
  color: #1c1917; background: #f7f3ea; border-radius: 18px;
  box-shadow: 0 22px 70px rgba(0,0,0,.38); display: none;
}
.wa-panel.open { display: block; animation: waIn .22s ease; }
@keyframes waIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.wa-header {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; color: white; background: #164e47;
}
.wa-avatar {
  width: 48px; height: 48px; flex-shrink: 0; object-fit: cover;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
}
.wa-head-text { padding-right: 28px; }
.wa-brand { font-size: 1rem; font-weight: 700; line-height: 1.25; }
.wa-reply { margin-top: 3px; color: rgba(255,255,255,.82); font-size: .78rem; line-height: 1.4; }
.wa-close {
  position: absolute; right: 12px; top: 9px; border: 0;
  color: rgba(255,255,255,.82); background: transparent;
  font-size: 1.55rem; line-height: 1; cursor: pointer;
}
.wa-body {
  min-height: 205px; padding: 30px 18px;
  background:
    radial-gradient(circle at 18% 20%, rgba(0,0,0,.04) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 38%, rgba(0,0,0,.035) 0 1px, transparent 2px),
    radial-gradient(circle at 36% 78%, rgba(0,0,0,.03) 0 1px, transparent 2px),
    #f7f3ea;
  background-size: 44px 44px, 58px 58px, 52px 52px, auto;
}
.wa-message {
  padding: 14px 16px; color: #3f3f46; background: #dcf8c6;
  border-radius: 12px; line-height: 1.75; font-size: .94rem;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.wa-footer { padding: 16px; background: white; text-align: center; }
.wa-cta {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 13px 20px; color: white; background: #25d366;
  border-radius: 999px; text-decoration: none; font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}
.wa-cta::before { content: '☏'; font-size: 1.15rem; }
.wa-cta:hover { background: #1fbd5a; transform: translateY(-1px); }
.wa-status {
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  margin-top: 12px; color: #57534e; font-size: .82rem;
}
.wa-dot {
  width: 10px; height: 10px; display: inline-block; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}

@media (max-width: 980px) {
  .guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .home-guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-detail-hero { grid-template-columns: 1fr; }
  .guide-detail-photo { min-height: 480px; }
  .guide-detail-copy { padding: 2.5rem 1.5rem; }
  .guide-answer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .guides-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wa-widget { right: 16px; bottom: 16px; }
  .wa-panel { width: calc(100vw - 32px); bottom: 72px; }
  .wa-body { min-height: 180px; }
  .home-guides-grid { grid-template-columns: 1fr; }
  .home-guide-photo { height: 360px; }
  .guides-nav { padding: 0 1rem; }
  .guides-nav-link { display: none; }
  .guides-brand span { display: none; }
  .guides-hero-inner,
  .guides-main,
  .guide-detail-main { width: min(100% - 2rem, 1180px); }
  .trust-grid { grid-template-columns: 1fr; }
  .guide-gallery { grid-template-columns: repeat(2, 1fr); }
  .guide-detail-credentials { grid-template-columns: 1fr; }
  .guide-facts { grid-template-columns: 1fr; }
}
