:root {
  --bg: #000000;
  --panel: #1a1a1a;
  --gold: #c9a56a;
  --gold-bright: #d4b07a;
  --text: #ffffff;
  --muted: #a8a8a8;
  --wechat: #07c160;
  --line: rgba(255, 255, 255, 0.18);
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --dock-h: 3.4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2.25rem 1.25rem calc(var(--dock-h) + 2rem);
}

/* —— Intro —— */
.intro {
  text-align: center;
  margin-bottom: 2rem;
}

.region {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.intro h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 7.5vw, 2.35rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin-bottom: 1.1rem;
}

.desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto 1.35rem;
  max-width: 20.5rem;
}

.channel {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.55rem;
}

.tags {
  font-size: 0.82rem;
  color: var(--muted);
}

/* —— Contact panel —— */
.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.5rem 1.15rem 1.75rem;
  text-align: center;
}

.panel-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.25rem;
  letter-spacing: 0.06em;
}

.qr-wrap {
  margin-bottom: 1.15rem;
}

.qr-card {
  display: block;
  width: 100%;
  max-width: 16.5rem;
  margin: 0 auto;
  padding: 0.65rem;
  background: #fff;
  border-radius: 0.85rem;
  border: 2px solid var(--gold);
  overflow: hidden;
}

.qr-card img {
  width: 100%;
  border-radius: 0.35rem;
}

.qr-tip {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.65rem;
  border-radius: 0.55rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: #2a2a2a;
  color: #fff;
}

.btn-outline:active {
  background: #333;
}

.btn-wechat {
  background: var(--wechat);
  color: #fff;
}

.btn-wechat:active {
  filter: brightness(0.95);
}

.manager-name {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.manager-role {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.1rem;
}

.dial-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.35rem;
}

.phone {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.phone:active {
  color: var(--gold-bright);
}

/* —— Sticky dock —— */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: var(--dock-h);
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: #111;
}

.dock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.dock-call {
  background: #b8955e;
  color: #1a1208;
}

.dock-wx {
  background: var(--wechat);
  color: #fff;
}

.dock-call:active {
  filter: brightness(0.96);
}

.dock-wx:active {
  filter: brightness(0.96);
}

/* —— Toast —— */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-h) + 1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  transform: translateX(-50%) translateY(8px);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: rgba(30, 30, 30, 0.94);
  color: #fff;
  font-size: 0.88rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast[hidden] {
  display: block;
  opacity: 0;
}

.toast[hidden].is-show {
  opacity: 1;
}

/* —— Lightbox —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  width: min(92vw, 22rem);
  background: #fff;
  padding: 0.75rem;
  border-radius: 0.75rem;
}

.lightbox p {
  font-size: 0.85rem;
  color: var(--muted);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  opacity: 0.85;
}

@media (min-width: 480px) {
  .page {
    padding-top: 3rem;
  }
}
