/* R45 汽车/楼盘/品牌活动展示 */
:root {
  --primary: #D4AF37;
  --secondary: #1A1A2E;
  --accent: #E8C952;
  --bg: #0D0D1A;
  --text: #FFFFFF;
  --text-muted: #B0B0C0;
  --card: rgba(255,255,255,0.06);
  --border: rgba(212,175,55,0.25);
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
}

.section { padding: 3.5rem 1.25rem; max-width: 960px; margin: 0 auto; }
.section__title { font-size: 1.5rem; text-align: center; margin: 0 0 .5rem; color: var(--primary); }
.section__sub { text-align: center; color: var(--text-muted); margin: 0 0 1.5rem; font-size: .95rem; }

.btn {
  display: inline-block; padding: .65rem 1.35rem; border-radius: 999px;
  border: none; cursor: pointer; font-weight: 600; font-size: .9rem; text-decoration: none; text-align: center;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #1a1a2e; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-block { display: block; width: 100%; margin-top: .75rem; }

/* Persona bar */
.persona-bar {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; align-items: center;
  padding: .65rem 1rem; background: var(--secondary); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
}
.persona-btn {
  padding: .45rem 1rem; border-radius: 999px; border: 2px solid var(--border);
  background: var(--card); color: var(--text); cursor: pointer; font-weight: 600; font-size: .85rem;
}
.persona-btn.active { border-color: var(--primary); background: var(--primary); color: #1a1a2e; }
.demo-states { display: flex; gap: 4px; margin-left: auto; }
.demo-state-btn {
  padding: .25rem .5rem; font-size: .65rem; border-radius: 4px; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); cursor: pointer;
}
.demo-state-btn.active { border-color: var(--accent); color: var(--accent); }

/* Hero */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero__media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.75), rgba(13,13,26,.85)); }
.hero__content { position: relative; z-index: 1; padding: 2rem 1.25rem; max-width: 640px; }
.hero__eyebrow { letter-spacing: .15em; text-transform: uppercase; font-size: .8rem; color: var(--primary); margin: 0 0 .5rem; }
.hero__title { font-size: clamp(2rem, 8vw, 3.5rem); margin: 0 0 .5rem; font-weight: 800; line-height: 1.1; }
.hero__sub { font-size: 1.15rem; color: var(--text-muted); margin: 0 0 .75rem; }
.hero__date { font-size: .9rem; margin-bottom: 1.5rem; opacity: .85; }
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: var(--primary); font-size: 1.5rem; animation: pulse 2s infinite; text-decoration: none;
}
@keyframes pulse { 0%,100% { opacity: .4; transform: translateX(-50%) translateY(0); } 50% { opacity: 1; transform: translateX(-50%) translateY(6px); } }

/* Flip countdown */
.countdown-wrap { display: flex; justify-content: center; padding: 1rem 0; }
.countdown-wrap--preheat { animation: glow 3s ease-in-out infinite; }
@keyframes glow { 0%,100% { filter: drop-shadow(0 0 8px rgba(212,175,55,.3)); } 50% { filter: drop-shadow(0 0 20px rgba(212,175,55,.6)); } }
.flip-clock { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.flip-unit { text-align: center; }
.flip-card {
  position: relative; width: 64px; height: 72px; perspective: 200px;
  background: var(--secondary); border-radius: 8px; border: 1px solid var(--border); overflow: hidden;
}
.flip-face {
  position: absolute; left: 0; right: 0; height: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: var(--primary); background: var(--card);
}
.flip-face--top { top: 0; border-bottom: 1px solid var(--border); align-items: flex-end; padding-bottom: 2px; }
.flip-face--bottom { bottom: 0; align-items: flex-start; padding-top: 2px; }
.flip-unit.is-flipping .flip-card { animation: flipPulse .3s ease; }
@keyframes flipPulse { 50% { transform: rotateX(-20deg); } }
.flip-label { display: block; font-size: .72rem; color: var(--text-muted); margin-top: .35rem; }
.countdown-live { text-align: center; padding: 1rem; }

/* Highlights */
.hi-carousel { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.hi-nav { background: var(--card); border: 1px solid var(--border); color: var(--text); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; flex-shrink: 0; }
.hi-card { flex: 1; background: var(--card); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); transition: transform .2s; }
.hi-card:hover { transform: scale(1.02); }
.hi-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.hi-card__body { padding: 1rem; }
.hi-card__icon { font-size: 1.5rem; }
.hi-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 1rem; }
.hi-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--border); padding: 0; cursor: pointer; }
.hi-dot.active { background: var(--primary); width: 20px; border-radius: 4px; }
.btn-360 { display: block; margin: 0 auto; }
.hi-fallback-note { text-align: center; font-size: .8rem; color: var(--text-muted); }
.modal-360 {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem;
}
.modal-360__close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }
.swiper-360 { width: 100%; max-width: 900px; height: 56vw; max-height: 520px; }
.swiper-360 img { width: 100%; height: 100%; object-fit: contain; }
.modal-360__hint { color: var(--text-muted); font-size: .85rem; margin-top: .75rem; }

/* Schedule */
.sch-filter { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1.5rem; }
.chip { padding: .4rem .85rem; border-radius: 999px; border: 2px solid var(--border); background: transparent; color: var(--text); cursor: pointer; font-size: .85rem; }
.chip.active { border-color: var(--primary); background: var(--primary); color: #1a1a2e; }
.timeline { position: relative; padding: 1rem 0; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--border); transform: translateX(-50%); }
.timeline-item { position: relative; width: 50%; padding: 0 1.5rem 2rem; }
.timeline-item.left { left: 0; text-align: right; padding-right: 2rem; }
.timeline-item.right { left: 50%; padding-left: 2rem; }
.timeline-dot {
  position: absolute; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--secondary); border: 2px solid var(--primary); display: flex; align-items: center; justify-content: center;
}
.timeline-item.left .timeline-dot { right: -18px; }
.timeline-item.right .timeline-dot { left: -18px; }
.timeline-item.active .timeline-dot { animation: glow 2s infinite; box-shadow: 0 0 12px var(--primary); }
.timeline-item.active .timeline-card { border-color: var(--primary); box-shadow: 0 0 20px rgba(212,175,55,.15); }
.timeline-live { display: inline-block; margin-left: .5rem; font-size: .72rem; color: var(--accent); font-weight: 700; }
.timeline-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; text-align: left; }
.timeline-card time { font-size: .8rem; color: var(--primary); font-weight: 700; }
.timeline-speaker { font-size: .8rem; color: var(--text-muted); }
.timeline-more { background: none; border: none; color: var(--primary); cursor: pointer; font-size: .8rem; padding: 0; margin-top: .35rem; }
.timeline-detail { font-size: .8rem; color: var(--text-muted); margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--border); }
@media (max-width: 640px) {
  .timeline::before { left: 18px; }
  .timeline-item, .timeline-item.left, .timeline-item.right { width: 100%; left: 0; padding: 0 0 1.5rem 3rem; text-align: left; }
  .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot { left: 0; right: auto; }
}

/* Booking */
.book-steps { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.25rem; }
.book-step {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--border); font-weight: 700; font-size: .85rem;
}
.book-step.active, .book-step.done { background: var(--primary); color: #1a1a2e; }
.book-step-panel { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; }
.book-step-panel label { display: block; margin-bottom: .75rem; font-size: .9rem; }
.book-step-panel input, .book-step-panel textarea { width: 100%; padding: .6rem; margin-top: .25rem; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.check-row { display: flex !important; align-items: center; gap: .5rem; }
.option-grid, .slot-dates, .slot-times { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.option-btn, .date-btn, .time-btn {
  padding: .5rem .85rem; border-radius: 8px; border: 2px solid var(--border); background: var(--bg); color: var(--text); cursor: pointer; font-size: .85rem;
}
.option-btn.active, .date-btn.active, .time-btn.active { border-color: var(--primary); background: var(--primary); color: #1a1a2e; }
.success-panel { text-align: center; background: var(--card); border: 1px solid var(--primary); border-radius: 12px; padding: 1.5rem; }
.verify-code { font-size: 1.75rem; color: var(--primary); letter-spacing: .2em; }
.qr-box { margin: 1rem auto; display: flex; justify-content: center; }
.success-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 1rem 0; }
.venue-box { font-size: .88rem; color: var(--text-muted); margin-top: 1rem; }

/* Speakers */
.speaker-grid { display: grid; gap: 1rem; }
@media (min-width: 600px) { .speaker-grid { grid-template-columns: repeat(3, 1fr); } }
.speaker-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; text-align: center; }
.speaker-card img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto .75rem; border: 2px solid var(--primary); }
.speaker-card__title { font-size: .85rem; color: var(--primary); margin: 0 0 .5rem; }
.speaker-card__bio { font-size: .8rem; color: var(--text-muted); margin: 0; }

/* Site footer */
.venue-card { background: var(--card); border-radius: 12px; padding: 1.25rem; text-align: center; margin-bottom: 1.5rem; border: 1px solid var(--border); }
.logo-wall { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.logo-chip { padding: .45rem 1rem; background: var(--card); border-radius: 8px; font-size: .8rem; border: 1px solid var(--border); }

/* Theme panel */
.theme-panel {
  position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 90;
  display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--card); border-radius: 10px; border: 1px solid var(--border);
}
.theme-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; cursor: pointer; padding: 0; }
.theme-dot.active { outline: 2px solid var(--text); }

.ev-toast {
  position: fixed; left: 50%; bottom: calc(6rem + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--secondary); border: 1px solid var(--primary); color: var(--text); padding: .65rem 1.2rem;
  border-radius: 999px; opacity: 0; transition: .25s; z-index: 1100; font-size: .85rem; max-width: 90vw;
}
.ev-toast--show { opacity: 1; }

/* Verify page */
.verify-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.verify-box { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; max-width: 400px; width: 100%; }
.verify-box label { display: block; margin: 1rem 0; }
.verify-box input { width: 100%; padding: .65rem; margin-top: .35rem; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 1.25rem; letter-spacing: .15em; text-align: center; }
.verify-msg.ok { color: #34c759; }
.verify-msg.err { color: #ff6b6b; }
.verify-ok { color: #34c759; font-weight: 700; }

/* Standard footer */
.contact-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 850;
  background: #1a1a1a; padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,.08);
}
.contact-footer__btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; max-width: 960px; margin: 0 auto; }
.contact-footer__cta { background: #c41e1e !important; color: #fff !important; text-align: center; padding: .6rem .35rem; border-radius: 6px; font-size: .78rem; font-weight: 700; text-decoration: none; }
.contact-footer__btn { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; padding: .6rem .35rem; border-radius: 6px; font-size: .78rem; cursor: pointer; text-align: center; text-decoration: none; }
.contact-footer__brand { text-align: center; font-size: .62rem; color: rgba(255,255,255,.5); margin: .4rem 0 0; }
html.has-contact-footer .zw-root .zw-fab { bottom: calc(6rem + env(safe-area-inset-bottom)); }

@media (max-width: 480px) {
  .demo-states { width: 100%; justify-content: center; margin-left: 0; margin-top: .35rem; }
  .theme-panel { top: auto; bottom: calc(6.5rem + env(safe-area-inset-bottom)); transform: none; flex-direction: row; right: 8px; }
}

/* Top nav */
.top-nav {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .55rem 1rem; background: rgba(13,13,26,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); position: sticky; top: 2.85rem; z-index: 190;
}
.top-nav__brand { color: var(--primary); font-weight: 800; text-decoration: none; font-size: .9rem; flex-shrink: 0; max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-nav__menu {
  margin-left: auto; background: transparent; border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; padding: .35rem .55rem; cursor: pointer; font-size: 1rem;
}
.top-nav__links { display: none; width: 100%; flex-direction: column; gap: .2rem; padding-top: .35rem; }
.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 { background: var(--card); color: var(--primary); }
.top-nav__share { border: 1px dashed var(--border) !important; text-align: center; }
@media (min-width: 768px) {
  .top-nav__menu { display: none; }
  .top-nav__links { display: flex !important; flex-direction: row; flex-wrap: wrap; width: auto; margin-left: auto; padding-top: 0; }
}

/* Brand video M8 */
.brand-video { text-align: center; }
.video-thumb {
  position: relative; display: block; width: 100%; max-width: 720px; margin: 0 auto; padding: 0;
  border: none; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--card);
  box-shadow: var(--shadow);
}
.video-thumb img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.video-thumb__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35); transition: background .25s;
}
.video-thumb:hover .video-thumb__play { background: rgba(0,0,0,.5); }
.video-thumb__play svg { width: 72px; height: 72px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }

/* Modals */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.82);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-close {
  position: absolute; top: .75rem; right: .75rem; width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.15); color: #fff; font-size: 1.25rem; cursor: pointer; z-index: 2;
}
.video-modal { position: relative; width: min(960px, 100%); }
.video-modal__content video, .video-modal__content iframe {
  display: block; width: 100%; aspect-ratio: 16/9; border: none; border-radius: 8px; background: #000;
}
.speaker-modal {
  position: relative; background: var(--secondary); border: 1px solid var(--border); border-radius: 16px;
  padding: 2rem 1.5rem 1.5rem; max-width: 420px; width: 100%; text-align: center; max-height: 90vh; overflow-y: auto;
}
.speaker-modal__avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); margin-bottom: .75rem; }
.speaker-modal__title, .speaker-modal__company { color: var(--text-muted); font-size: .9rem; margin: .25rem 0; }
.speaker-modal__bio { text-align: left; font-size: .88rem; line-height: 1.7; margin: 1rem 0 0; }
.speaker-modal__socials { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1rem; }
.social-link {
  display: inline-block; padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--border);
  color: var(--primary); text-decoration: none; font-size: .78rem;
}
.video-cta-toast {
  position: fixed; left: 50%; bottom: calc(7rem + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(12px);
  background: var(--secondary); border: 1px solid var(--primary); border-radius: 12px; padding: 1rem 1.25rem;
  text-align: center; z-index: 1300; opacity: 0; transition: .3s; min-width: 220px;
}
.video-cta-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.video-cta-toast p { margin: 0 0 .65rem; font-size: .9rem; }

/* Speakers hover */
.speaker-card { cursor: pointer; transition: transform .25s, box-shadow .25s; }
.speaker-card:hover, .speaker-card:focus { transform: translateY(-4px); box-shadow: var(--shadow); outline: none; }
.speaker-card__more { display: block; margin-top: .5rem; font-size: .78rem; color: var(--primary); }
.swiper-speakers { padding: .5rem 0 1rem; overflow: hidden; }
.swiper-speakers .speaker-card { height: 100%; margin: 0; }
.swiper-speakers .swiper-slide { height: auto; }

/* Footer share M7 */
.share-section { margin: 1.5rem 0; text-align: center; }
.share-section__title { font-size: 1rem; margin: 0 0 .75rem; color: var(--text-muted); font-weight: 600; }
.share-buttons { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.share-btn {
  padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--card);
  color: var(--text); cursor: pointer; font-size: .82rem; text-decoration: none;
}
.share-btn:hover { border-color: var(--primary); color: var(--primary); }
.share-btn--link { border-style: dashed; }
.share-btn--poster { border-color: var(--primary); color: var(--primary); }
.btn-map { margin-top: .75rem; display: inline-block; }
.demo-dash-link { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.top-nav__poster { border: none; cursor: pointer; font-family: inherit; }

/* M9 Share poster modal */
.share-poster-modal {
  position: fixed; inset: 0; z-index: 1400;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.share-poster-modal[hidden] { display: none !important; }
body.poster-modal-open { overflow: hidden; }
.share-poster-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); }
.share-poster-modal__panel {
  position: relative; z-index: 1; width: 100%; max-width: 420px; max-height: 92vh;
  overflow-y: auto; background: var(--secondary); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.25rem; text-align: center;
}
.share-poster-modal__close {
  position: absolute; top: .5rem; right: .75rem; border: none; background: transparent;
  color: var(--text-muted); font-size: 1.75rem; cursor: pointer; line-height: 1;
}
.share-poster-modal__title { margin: 0 0 1rem; font-size: 1rem; color: var(--primary); }
.share-poster-modal__preview { width: 100%; border-radius: 12px; box-shadow: var(--shadow); }
.share-poster-modal__actions { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.share-poster-modal__hint { font-size: .72rem; color: var(--text-muted); margin: .75rem 0 0; }
.logo-marquee { overflow: hidden; margin-top: 1.25rem; padding: .5rem 0; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.logo-marquee__track {
  display: flex; gap: .5rem; width: max-content;
  animation: logo-marquee 28s linear infinite;
}
.logo-marquee__track .logo-chip { flex-shrink: 0; }
@keyframes logo-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
}
