/* 主题变量（高端专业） */
:root {
  --bg-deep: #0b1220;
  --bg-soft: #0f172a;
  --text-main: #0f172a;
  --text-muted: #465168;
  --surface: #ffffff;
  --border: #e6e8ee;
  --primary: #0b5fff; /* 海军蓝调主色 */
  --primary-dark: #0a4ad9;
  --accent: #caa957;  /* 金色点缀 */
  --shadow: 0 10px 30px rgba(2,6,23,.06);
  --shadow-strong: 0 18px 50px rgba(2,6,23,.12);
}
/* 基础设定 */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(900px 520px at -10% -10%, rgba(11,95,255,.12), transparent 60%),
    radial-gradient(760px 480px at 110% 10%, rgba(202,169,87,.10), transparent 60%),
    linear-gradient(180deg, #f6f8fb, #eef2f8 45%, #eaeef6);
}

.page-header { padding: 28px 16px 6px; }
.brand { display: flex; align-items: center; justify-content: center; gap: 12px; max-width: 980px; margin: 0 auto; padding: 0 4px; text-align: center; }
.logo { min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #0f172a; color: #fff; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.08); font-weight: 800; letter-spacing: .5px; text-decoration: none; font-variant-numeric: tabular-nums; }
.titles h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: .2px; }
.titles .subtitle { margin: 4px 0 0; color: var(--text-muted); }

.container { max-width: 980px; margin: 0 auto; padding: 0 16px 40px; }

.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 16px; align-items: stretch; justify-content: center; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  height: 100%;
}
.contact-card.compact { padding: 12px 16px; }
.contact-card.compact .card-title { font-size: 16px; }
.contact-card.compact .value.highlight { font-size: 20px; }
.contact-card.compact .row { grid-template-columns: 1fr auto; }
.contact-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-strong); border-color: #d7dce8; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.card-title { color: #0b1a37; letter-spacing: 0; }
.card-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #0f172a; border: 1px solid #e8ecf3; background: linear-gradient(180deg,#ffffff,#f4f7fb); }
.card-icon img { width: 20px; height: 20px; display: block; }
.card-icon.wechat { border-color: #d9eaea; }
.card-icon.qq { border-color: #d9e3f0; }
.card-icon.tg { border-color: #d9e1f6; }
.card-title { margin: 0; font-size: 18px; font-weight: 700; }

.row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.grid { display: grid; grid-auto-rows: max-content; gap: 14px; }
.btn-caption { display: none; }
.action-col { display: grid; justify-items: end; }
.field { display: flex; align-items: baseline; gap: 8px; }
.label { color: #64748b; font-size: 14px; }
.value { font-weight: 600; }
.row.no-label .label { display: none; }
.value.highlight { font-weight: 800; font-size: 22px; color: #0b1a37; letter-spacing: .1px; font-variant-numeric: tabular-nums; }
.value.highlight.wechat { color: #0b1a37; }
.value.highlight.qq { color: #0b1a37; }
.value.highlight.tg { color: #0b1a37; }

.qr-block { margin: 4px auto 0; display: grid; align-items: center; justify-items: center; width: max-content; position: relative; }
.qr-block > img.qr-thumb { grid-area: 1 / 1; justify-self: center; }
.qr-info { position: absolute; left: 100%; bottom: -2px; margin-left: 12px; color: #64748b; font-size: 13px; line-height: 1.6; white-space: nowrap; }
.qr-info .hint { font-size: 15px; margin: 0; }
.qr-thumb { display: block; width: 100%; max-width: 160px; height: auto; border-radius: 12px; border: 1px solid #e2e8f0; cursor: zoom-in; box-shadow: 0 6px 24px rgba(2,6,23,.06); transition: transform .16s ease, box-shadow .16s ease; }
.qr-thumb:hover { transform: scale(1.03); box-shadow: 0 8px 28px rgba(2,6,23,.10); }
/* .qr-actions 未使用，已移除 */
.tg-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; justify-content: flex-start; }
.contact-card.compact .tg-actions { margin-top: 4px; justify-content: center; }
.contact-card.compact .row { margin-bottom: 4px; }
.hint { margin-top: 8px; color: #64748b; font-size: 13px; }

/* 按钮 */
.btn { appearance: none; border: 1px solid transparent; background: #e9edf5; color: #0f172a; padding: 10px 16px; border-radius: 12px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; letter-spacing: .2px; transition: transform .12s ease, box-shadow .12s ease, filter .12s ease; box-shadow: 0 4px 14px rgba(2,6,23,.06); min-height: 42px; }
.btn:hover { filter: brightness(0.98); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg,var(--primary),var(--primary-dark)); color: #ffffff; box-shadow: 0 6px 18px rgba(11,95,255,.28); }
.btn.outline { background: #ffffff; border-color: #cbd5e1; }
/* .btn.ghost 未使用，已移除 */

/* 复制按钮：主色描边、浅底色，更显主次 */
.copy-btn { background: #f4f7ff; color: var(--primary-dark); border: 1px solid rgba(11,95,255,.28); }
.copy-btn:hover { filter: none; box-shadow: 0 4px 16px rgba(11,95,255,.12); }
.copy-btn:active { background: #e9f0ff; }

/* QR 视觉节奏 */
.qr-thumb { border-radius: 14px; }
.qr-info { line-height: 1.7; }

.page-footer { text-align: center; margin-top: 24px; }
.vip-link { display: inline-block; margin-top: 8px; color: #0f172a; background: #fde68a; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; border: 1px solid #f59e0b; }
.vip-link:hover { background: #fcd34d; }

/* FAQ */
.faq-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); margin-top: 20px; }
.faq-title { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: #0b1a37; }
.faq-subtitle { margin: 0; color: #64748b; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(17,24,39,0.95);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Modal */
.modal { position: fixed; inset: 0; display: none; z-index: 999; }
.modal[aria-hidden="false"] { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.modal-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  padding: 12px;
  border-radius: 12px;
  width: min(92vw, 560px);
}
.modal-content img { width: 100%; height: auto; display: block; border-radius: 8px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }

/* 响应式 */
@media (max-width: 1024px) { .contacts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .container { padding-bottom: 56px; }
  .titles h1 { font-size: 22px; }
  .contacts-grid { grid-template-columns: 1fr; gap: 16px; }
  .row { grid-template-columns: 1fr auto; gap: 10px; }
  .qr-thumb { max-width: 132px; }
  .qr-block { width: max-content; }
  .qr-block > img.qr-thumb { justify-self: center; }
  .qr-info { font-size: 13px; }
}

/* 布局微调 */
.contacts-grid { grid-auto-rows: auto; }
.page-footer { margin-top: 32px; }
.vip-link { font-size: 15px; }



