/* R48 讲师/咨询师名片 v2 · 6色 + 明暗双主题 + 演讲主题选择器 */
:root {
  --primary: #E87722; --accent: #2D3436; --bg: #FFF8F0; --bg-light: #FFF0E0;
  --card: #FFF; --text: #2D3436; --text-muted: #636E72; --text-dark: #2D3436;
  --border: #F0E0D0; --shadow: 0 4px 24px rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.65;
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  transition: background .35s, color .35s;
}
html.has-mobile-bar body { padding-bottom: calc(8.75rem + env(safe-area-inset-bottom)); }
img { max-width: 100%; display: block; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }

.persona-bar {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; align-items: center;
  padding: .55rem 1rem; background: var(--card); border-bottom: 1px solid var(--border);
}
.persona-btn {
  padding: .4rem .9rem; border-radius: 999px; border: 2px solid var(--border);
  background: var(--bg); cursor: pointer; font-weight: 600; font-size: .82rem;
}
.persona-btn.active { border-color: var(--primary); background: var(--primary); color: #fff; }

.top-nav { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: .25s; }
body[data-appearance='dark'] .top-nav { background: rgba(15,15,20,.92); }
.top-nav.is-scrolled { border-color: var(--border); box-shadow: var(--shadow); }
.top-nav__row { display: flex; align-items: center; gap: .75rem; padding: .55rem 1rem; }
.top-nav__brand { font-weight: 800; color: var(--primary); text-decoration: none; font-size: .9rem; flex-shrink: 0; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-nav__menu { margin-left: auto; border: 1px solid var(--border); background: var(--card); border-radius: 6px; padding: .35rem .55rem; cursor: pointer; }
.top-nav__links { display: none; width: 100%; flex-direction: column; gap: .2rem; padding: 0 1rem 1rem; }
.top-nav__links.is-open { display: flex; }
.top-nav__links a { color: var(--text-muted); text-decoration: none; padding: .45rem .65rem; border-radius: 6px; font-size: .82rem; }
.top-nav__links a.is-active, .top-nav__links a:hover { color: var(--primary); background: var(--bg-light); }
.top-nav__cta { color: var(--primary) !important; font-weight: 700; }
@media (min-width: 768px) {
  .top-nav__menu { display: none; }
  .top-nav__links { display: flex !important; flex-direction: row; width: auto; margin-left: auto; padding: 0; }
}

.theme-panel {
  position: fixed; right: 10px; top: 50%; transform: translateY(-50%); z-index: 180;
  display: flex; flex-direction: column; gap: 6px; padding: 8px;
  background: var(--card); border-radius: 10px; border: 1px solid var(--border);
  box-shadow: var(--shadow); max-height: min(50vh, 240px); overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.theme-appearance-btn {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.15); cursor: pointer; font-size: .72rem;
  background: var(--card); padding: 0; line-height: 22px; text-align: center; flex-shrink: 0;
}
.theme-dot {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.15); cursor: pointer; padding: 0; flex-shrink: 0;
}
.theme-dot.active { outline: 2px solid var(--text-dark); }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: calc(4.25rem + env(safe-area-inset-bottom)); z-index: 840;
  display: flex; background: var(--card); border-top: 1px solid var(--border); box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}
.mobile-bar__btn {
  flex: 1; padding: .55rem .25rem; border: none; background: none; font-size: .68rem; color: var(--text-muted);
  text-decoration: none; text-align: center; cursor: pointer;
}
.mobile-bar__btn--primary { color: var(--primary); font-weight: 700; }
@media (min-width: 768px) {
  .mobile-bar { display: none; }
  html.has-mobile-bar body { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  .theme-panel { top: 50%; bottom: auto; transform: translateY(-50%); }
}
@media (max-width: 767px) {
  .theme-panel {
    top: auto; bottom: calc(7.75rem + env(safe-area-inset-bottom)); transform: none; right: 8px;
    flex-direction: row; flex-wrap: nowrap; max-height: none; max-width: calc(100vw - 4.5rem);
    overflow-x: auto; overflow-y: hidden;
  }
}

/* R3 底栏三按钮 · 紧凑居中 · 随主题色协调 */
.contact-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 850;
  padding: .45rem .75rem calc(.45rem + env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}
body[data-appearance='dark'] .contact-footer {
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}
.contact-footer__btns {
  display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center;
  max-width: 420px; margin: 0 auto;
}
.contact-footer__cta,
.contact-footer__btn {
  flex: 0 1 auto;
  padding: .4rem .85rem; border-radius: 999px;
  font-size: .74rem; font-weight: 600; text-decoration: none;
  text-align: center; white-space: nowrap;
}
.contact-footer__cta {
  background: var(--primary); color: #fff;
  border: 1px solid var(--primary);
}
body[data-appearance='dark'] .contact-footer__cta { color: #111; }
.contact-footer__btn {
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); cursor: pointer;
}
.contact-footer__brand {
  text-align: center; font-size: .62rem; color: var(--text-muted);
  margin: .35rem 0 0;
}
html.has-contact-footer .zw-root .zw-fab {
  bottom: calc(9rem + env(safe-area-inset-bottom));
}
@media (min-width: 768px) {
  html.has-contact-footer .zw-root .zw-fab { bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

.section { padding: 2.5rem 1.25rem; max-width: 720px; margin: 0 auto; opacity: 0; transform: translateY(12px); animation: fadeUp .6s ease forwards; }
.section:nth-child(2) { animation-delay: .05s; }
.section:nth-child(3) { animation-delay: .1s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.section__title { font-size: 1.35rem; font-weight: 800; color: var(--primary); margin-bottom: .35rem; text-align: center; }
.section__sub { text-align: center; font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .65rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: .88rem;
  border: none; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
body[data-appearance='dark'] .btn-primary { color: #111; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-block { display: block; width: 100%; }

.hero { text-align: center; padding-top: 1.5rem; position: relative; }
.hero__glow {
  position: absolute; inset: -20% 0 40%; background: radial-gradient(circle, var(--bg-light), transparent 70%);
  pointer-events: none;
}
.hero__avatar {
  width: 7.5rem; height: 7.5rem; border-radius: 50%; object-fit: cover;
  margin: 0 auto 1rem; border: 4px solid var(--primary); position: relative;
}
.hero__name { font-size: 1.75rem; font-weight: 900; margin-bottom: .25rem; }
.hero__tagline { color: var(--text-muted); font-size: .95rem; margin-bottom: .35rem; }
.hero__promise { font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; }
.hero__topic-hint { font-size: .78rem; color: var(--primary); margin-bottom: 1rem; }
.hero__btns { display: flex; gap: .65rem; justify-content: center; flex-wrap: wrap; }

.logo-marquee { overflow: hidden; margin-bottom: 1rem; }
.logo-marquee__track { display: flex; gap: .5rem; animation: marquee 22s linear infinite; width: max-content; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-badge {
  padding: .35rem .75rem; border-radius: 999px; background: var(--card);
  border: 1px solid var(--border); font-size: .72rem; white-space: nowrap;
}
.stats-row { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; margin-bottom: .75rem; }
.stat-card {
  flex: 1; min-width: 5.5rem; text-align: center; padding: .85rem .5rem;
  background: var(--card); border-radius: 12px; border: 1px solid var(--border);
}
.stat-card__value { font-size: 1.35rem; font-weight: 800; color: var(--primary); }
.stat-card__label { font-size: .68rem; color: var(--text-muted); }
.media-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; font-size: .72rem; color: var(--text-muted); }

/* 演讲主题选择器 */
.topic-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1.25rem; }
.topic-chip {
  padding: .55rem .85rem; border-radius: 12px; border: 2px solid var(--border);
  background: var(--card); cursor: pointer; text-align: left; min-width: 7rem;
  font-weight: 700; font-size: .82rem; transition: .2s;
}
.topic-chip.active { border-color: var(--primary); background: var(--bg-light); box-shadow: var(--shadow); }
.topic-chip__meta { display: block; font-size: .65rem; font-weight: 500; color: var(--text-muted); margin-top: .15rem; }
.topic-preview {
  padding: 1.25rem; background: var(--card); border-radius: 16px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.topic-preview__meta { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .78rem; color: var(--text-muted); margin-bottom: .65rem; }
.topic-preview__summary { font-size: .9rem; margin-bottom: .75rem; }
.topic-preview__outline { padding-left: 1.1rem; font-size: .82rem; color: var(--text-muted); margin-bottom: 1rem; }
.topic-preview__outline li { margin-bottom: .35rem; }

.bento-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; }
@media (min-width: 640px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } }
.bento-card {
  position: relative; padding: 1rem; background: var(--card); border-radius: 14px;
  border: 1px solid var(--border); cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.bento-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.bento-card--featured { grid-column: span 2; }
.bento-card.is-recommended { border-color: var(--primary); }
.bento-card__badge {
  position: absolute; top: .5rem; right: .5rem; font-size: .58rem; padding: .12rem .4rem;
  background: var(--primary); color: #fff; border-radius: 999px; font-weight: 700;
}
body[data-appearance='dark'] .bento-card__badge { color: #111; }
.bento-card__icon { font-size: 1.75rem; margin-bottom: .25rem; }
.bento-card h3 { font-size: .92rem; margin-bottom: .2rem; }
.bento-card p { font-size: .72rem; color: var(--text-muted); margin-bottom: .35rem; }
.bento-card__price { font-size: .85rem; font-weight: 700; color: var(--primary); }

.about-belief { text-align: center; font-size: 1.05rem; font-weight: 600; font-style: italic; margin-bottom: 1rem; color: var(--primary); }
.about-blocks { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 1rem; }
.about-block { padding: .85rem; background: var(--card); border-radius: 12px; border: 1px solid var(--border); }
.about-block h3 { font-size: .88rem; margin-bottom: .25rem; }
.about-block p { font-size: .78rem; color: var(--text-muted); }
.cert-scroll { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; }
.cert-chip {
  flex-shrink: 0; padding: .35rem .65rem; border-radius: 999px; font-size: .68rem;
  background: var(--bg-light); border: 1px solid var(--border); color: var(--primary); font-weight: 600;
}

.testimonial-track { display: flex; gap: .65rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.testimonial-card {
  flex: 0 0 85%; scroll-snap-align: start; padding: 1rem; background: var(--card);
  border-radius: 14px; border: 1px solid var(--border);
}
@media (min-width: 640px) { .testimonial-card { flex: 0 0 48%; } }
.testimonial-card__head { display: flex; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.testimonial-card__head img { width: 2.25rem; height: 2.25rem; border-radius: 50%; object-fit: cover; }
.testimonial-card__head span { display: block; font-size: .68rem; color: var(--text-muted); }
.testimonial-card p { font-size: .82rem; color: var(--text-muted); font-style: italic; }
.testimonial-card__effect {
  display: inline-block; margin-top: .5rem; font-size: .68rem; padding: .2rem .5rem;
  border-radius: 999px; background: var(--bg-light); color: var(--primary); font-weight: 700;
}

.video-wrap { position: relative; padding-bottom: 56.25%; border-radius: 12px; overflow: hidden; margin-bottom: 1rem; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-link { display: block; padding: .65rem 0; border-bottom: 1px solid var(--border); font-size: .85rem; color: var(--primary); }

.process-track { display: flex; gap: .5rem; overflow-x: auto; }
.process-step {
  flex: 0 0 7rem; text-align: center; padding: .85rem .4rem; background: var(--card);
  border-radius: 12px; border: 1px solid var(--border); font-size: .72rem;
}
.process-step__icon { font-size: 1.35rem; margin-bottom: .25rem; }
.process-step strong { display: block; margin-bottom: .15rem; }

.booking-topic-line { text-align: center; font-size: .85rem; margin-bottom: 1rem; padding: .65rem; background: var(--bg-light); border-radius: 10px; }
.booking-services, .booking-durations { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1rem; }
.booking-svc, .booking-dur {
  padding: .45rem .85rem; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--card); cursor: pointer; font-size: .78rem;
}
.booking-svc.active, .booking-dur.active { border-color: var(--primary); background: var(--bg-light); color: var(--primary); font-weight: 700; }
.booking-fallback { display: flex; gap: 1rem; align-items: center; margin-top: 1.25rem; font-size: .82rem; }
.booking-qr { width: 5rem; height: 5rem; border-radius: 8px; object-fit: cover; }

.modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.modal__box {
  position: relative; background: var(--card); border-radius: 16px; padding: 1.25rem;
  width: 100%; max-width: 420px; max-height: 90vh; overflow: auto;
}
.modal__box--wide { max-width: 640px; }
.modal__close { position: absolute; top: .75rem; right: .75rem; background: none; border: none; font-size: 1.25rem; cursor: pointer; }
.modal__sub { font-size: .82rem; color: var(--text-muted); margin: .5rem 0 .75rem; }
.booking-iframe-wrap { position: relative; padding-bottom: 75%; border-radius: 10px; overflow: hidden; }
.booking-iframe-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.coach-toast {
  position: fixed; left: 50%; bottom: calc(9.5rem + env(safe-area-inset-bottom));
  transform: translateX(-50%); background: rgba(20,20,20,.9); color: #fff;
  padding: .6rem 1.1rem; border-radius: 999px; font-size: .85rem; z-index: 900;
  opacity: 0; pointer-events: none; transition: .3s;
}
.coach-toast--show { opacity: 1; }

@media (max-width: 480px) {
  .bento-card--featured { grid-column: span 2; }
  .hero__btns .btn { flex: 1; min-width: 45%; }
}
