/* ============================================================
   components.css · 顶部线 / 导航 / 底部 Tab / 页脚 / 名册卡片 / 客服弹窗
   ============================================================ */

/* ==================== 顶部信息线 ==================== */
.topline {
  height: var(--topline-h);
  display: flex;
  align-items: center;
  background: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}

.topline-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--txt-faint);
}

.topline-slogan {
  color: var(--brass);
  letter-spacing: .4em;
}

/* ==================== 导航 ==================== */
.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: var(--nav-h);
  background: rgba(11, 11, 12, .94);
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--dur-base), border-color var(--dur-base);
}

.nav.is-scrolled {
  background: var(--ink);
  border-bottom-color: var(--line);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* 品牌印记：取代旧紫色图形 logo */
.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--brass);
  color: var(--brass);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.brand-cn {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .2em;
  color: var(--txt);
  line-height: 1;
}

.brand-en {
  padding-left: 11px;
  border-left: 1px solid var(--line);
  font-family: var(--font-latin);
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--brass);
  line-height: 1;
  transform: translateY(1px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--txt-mid);
  transition: color var(--dur-base);
}

.nav-links a span {
  font-family: var(--font-latin);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--txt-faint);
  transition: color var(--dur-base);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--txt);
}

.nav-links a:hover span,
.nav-links a.active span {
  color: var(--brass);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}

.nav-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .26em;
  color: var(--txt-low);
}

.nav-live .dot {
  width: 4px;
  height: 4px;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--txt-mid);
  padding: 8px 0;
  transition: color var(--dur-base);
}

.nav-back svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-base) var(--ease);
}

.nav-back:hover {
  color: var(--brass-hi);
}

.nav-back:hover svg {
  transform: translateX(-3px);
}

@media (max-width: 1023px) {
  .nav-links {
    display: none;
  }

  .nav-live {
    display: none;
  }
}

@media (max-width: 767px) {
  :root {
    --nav-h: 60px;
  }

  .topline {
    display: none;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 26px;
    height: 26px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .brand-cn {
    font-size: 16px;
  }

  .brand-en {
    display: none;
  }

  .nav-actions {
    gap: 10px;
  }

  .nav-actions .btn {
    padding: 9px 14px;
    font-size: 10px;
    letter-spacing: .14em;
  }

  .nav-back {
    font-size: 10px;
    gap: 6px;
  }
}

/* ==================== 手机底部 Tab ==================== */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  display: none;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(11, 11, 12, .97);
  border-top: 1px solid var(--line);
}

.tabbar-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: var(--tabbar-h);
}

.tabbar a,
.tabbar button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--txt-low);
  transition: color var(--dur-base);
}

.tabbar a.active,
.tabbar button.active {
  color: var(--brass-hi);
}

.tabbar a.active::before,
.tabbar button.active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 26px;
  height: 1px;
  background: var(--brass);
}

.tabbar svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1023px) {
  .tabbar {
    display: block;
  }

  body.has-tabbar {
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  }
}

/* ==================== PC 悬浮客服 ==================== */
.fab-kefu {
  position: fixed;
  right: 28px;
  bottom: 32px;
  z-index: 100;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass);
  background: var(--ink-3);
  border: 1px solid var(--line-strong);
  transition: color var(--dur-base), background var(--dur-base), border-color var(--dur-base);
}

.fab-kefu:hover {
  color: var(--bone);
  background: var(--wine);
  border-color: var(--wine);
}

.fab-kefu svg {
  width: 21px;
  height: 21px;
}

@media (max-width: 1023px) {
  .fab-kefu {
    display: none;
  }
}

/* ==================== 页脚 ==================== */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 7vw, 84px);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: clamp(44px, 6vw, 70px);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
}

.footer-brand .brand-mark {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

.footer-brand .brand-cn {
  font-size: 16px;
}

.footer-brand .brand-en {
  display: inline;
}

.footer-slogan {
  max-width: 360px;
  font-size: 12px;
  line-height: 2;
  letter-spacing: .04em;
  color: var(--txt-low);
}

.footer h4 {
  margin-bottom: 18px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--brass);
}

.footer-links li {
  margin-bottom: 11px;
}

.footer-links a,
.footer-links button {
  padding: 0;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--txt-mid);
  transition: color var(--dur-base);
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--brass-hi);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--txt-faint);
}

.footer-word {
  font-family: var(--font-latin);
  font-size: clamp(80px, 18vw, 300px);
  line-height: .72;
  letter-spacing: .04em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 237, 227, .1);
  user-select: none;
  white-space: nowrap;
  transform: translateY(8%);
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 9.5px;
  }
}

/* ==================== 名册卡片 ==================== */
.tcard {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  min-width: 0;
}

.tcard-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink-3);
}

.tcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(.88) contrast(1.02);
  transition: transform 1.1s var(--ease-slow), filter .8s var(--ease);
}

.tcard:hover .tcard-media img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.02);
}

.tcard-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(8, 8, 9, .66));
  pointer-events: none;
}

.tcard-no {
  position: absolute;
  top: 13px;
  left: 14px;
  z-index: 2;
  font-family: var(--font-latin);
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(242, 237, 227, .86);
}

.tcard-status {
  position: absolute;
  left: 14px;
  bottom: 13px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--bone);
}

.tcard-status.is-off {
  color: var(--bone-3);
}

.tcard-status.is-free {
  color: var(--brass-hi);
}

.tcard-book {
  position: absolute;
  right: 12px;
  bottom: 11px;
  z-index: 3;
  padding: 7px 14px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--bone);
  background: rgba(11, 11, 12, .32);
  border: 1px solid rgba(242, 237, 227, .55);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity var(--dur-base), transform var(--dur-base) var(--ease), background var(--dur-base), border-color var(--dur-base);
}

.tcard:hover .tcard-book {
  opacity: 1;
  transform: none;
}

.tcard-book:hover {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--paper-ink);
}

.tcard-body {
  padding-top: 15px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
}

.tcard-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .08em;
}

.tcard-name small {
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--txt-faint);
}

.tcard-meta {
  margin-top: 7px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--brass);
}

.tcard-bio {
  margin-top: 9px;
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--txt-low);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.4em;
}

@media (max-width: 1023px) {
  .tcard-book {
    opacity: 1;
    transform: none;
    padding: 9px 15px;
    font-size: 10px;
  }

  .tcard-name {
    font-size: 17px;
  }

  .tcard-bio {
    font-size: 11px;
  }
}

/* ==================== 客服二维码弹窗 ==================== */
.kefu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(6, 6, 7, .92);
  opacity: 0;
  transition: opacity var(--dur-base);
}

.kefu-overlay.is-open {
  opacity: 1;
}

.glass {
  background: var(--ink-3);
  border: 1px solid var(--line);
}

.kefu-card {
  position: relative;
  width: 372px;
  max-width: 100%;
  padding: 38px 32px 30px;
  text-align: center;
  transform: translateY(18px);
  opacity: 0;
  transition: transform .45s var(--ease-slow), opacity .3s;
}

.kefu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  width: 42px;
  height: 1px;
  background: var(--brass);
}

.kefu-overlay.is-open .kefu-card {
  transform: none;
  opacity: 1;
}

.kefu-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt-low);
  border: 1px solid transparent;
  transition: color var(--dur-base), border-color var(--dur-base);
}

.kefu-close:hover {
  color: var(--brass-hi);
  border-color: var(--line-strong);
}

.kefu-icon {
  width: 48px;
  height: 48px;
  margin: 2px auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bone);
  background: var(--wine);
}

.kefu-icon svg {
  width: 23px;
  height: 23px;
}

.kefu-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 5px;
}

.kefu-subtitle {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--txt-low);
  margin-bottom: 22px;
}

.kefu-qr-wrap {
  position: relative;
  width: 206px;
  margin: 0 auto 16px;
  padding: 10px;
  background: #fff;
}

.kefu-qr-wrap img {
  width: 100%;
  height: auto;
  pointer-events: auto;
  -webkit-touch-callout: default;
  -webkit-user-drag: none;
}

/* 新体系不保留扫描线动效 */
.kefu-scanline {
  display: none;
}

.kefu-online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--online);
}

.kefu-hint {
  padding: 12px 10px;
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: .04em;
  color: var(--txt-mid);
  border: 1px solid var(--line);
}

.kefu-hint b {
  color: var(--brass-hi);
  font-weight: 600;
}

@media (max-width: 420px) {
  .kefu-card {
    padding: 32px 22px 24px;
  }

  .kefu-qr-wrap {
    width: 180px;
  }
}

/* Region selection matches the existing gold and ink palette. */
.region-control { --region-text-offset: 8px; position: relative; display: inline-block; max-width: 180px; width: 100%; vertical-align: top; }
.region-control::after { content: ""; position: absolute; right: 5px; top: 42%; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); pointer-events: none; }
.region-select { display: block; box-sizing: border-box; width: 100%; margin: 0; border: 0; border-radius: 0; appearance: none; -webkit-appearance: none; padding: 5px 20px 9px var(--region-text-offset); background-color: transparent; background-image: linear-gradient(var(--brass),var(--brass)); background-repeat: no-repeat; background-size: 2em 1px; background-position: left var(--region-text-offset) bottom; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }
.region-select option { background: #171717; color: #eee8d8; font: 16px sans-serif; }
.region-select:focus-visible { outline: 2px solid #b69a64; outline-offset: 4px; }
@media (max-width:600px) { .region-control { max-width: 110px;font-size: 20px; } }
