/* ============================================================
   王鑫 · 六同电子名片
   视觉方向：玄青墨夜 × 朱砂印章 × 鎏金勾线（中原信任美学）
   ============================================================ */

:root {
  --gold: #c9a86a;
  --gold-soft: rgba(201, 168, 106, 0.32);
  --gold-faint: rgba(201, 168, 106, 0.14);
  --cinnabar: #c13f2e;
  --stage-a: #0b131c;
  --stage-b: #101b26;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(201, 168, 106, 0.07), transparent 60%),
    radial-gradient(900px 600px at 8% 108%, rgba(193, 63, 46, 0.06), transparent 55%),
    linear-gradient(175deg, var(--stage-a), var(--stage-b) 55%, #0d1620);
  min-height: 100vh;
  color: #ede6d6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 舞台 ---------- */

.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 36px 14px;
}

.motto-strip {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.6em;
  color: rgba(201, 168, 106, 0.42);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  user-select: none;
}

.motto-strip .strip-seal {
  width: 11px;
  height: 11px;
  background: rgba(193, 63, 46, 0.65);
  border-radius: 2px;
}

.motto-strip.left {
  left: 7vw;
}

.motto-strip.right {
  right: 7vw;
}

@media (max-width: 1020px) {
  .motto-strip {
    display: none;
  }
}

/* ---------- 卡面主题变量 ---------- */

.card {
  width: min(430px, 100%);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(201, 168, 106, 0.22);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 4px 18px rgba(0, 0, 0, 0.4);
  transition: background 0.4s ease, color 0.4s ease;
}

.card[data-surface="ink"] {
  --card-bg: #121c26;
  --card-bg-2: #0d1620;
  --card-bg-3: #16222f;
  --text: #ece5d4;
  --muted: #90a0ad;
  --line: rgba(201, 168, 106, 0.26);
  --line-soft: rgba(201, 168, 106, 0.14);
  --chip-bg: rgba(255, 255, 255, 0.045);
  background: linear-gradient(178deg, var(--card-bg-3), var(--card-bg) 40%, var(--card-bg-2));
  color: var(--text);
}

.card[data-surface="paper"] {
  --card-bg: #f4eddd;
  --card-bg-2: #efe6d2;
  --card-bg-3: #f8f2e5;
  --text: #2a2f36;
  --muted: #7a7466;
  --line: rgba(122, 98, 55, 0.35);
  --line-soft: rgba(122, 98, 55, 0.18);
  --chip-bg: rgba(94, 78, 45, 0.06);
  background: linear-gradient(178deg, var(--card-bg-3), var(--card-bg) 45%, var(--card-bg-2));
  color: var(--text);
}

/* ---------- 卡头 ---------- */

.card-header {
  position: relative;
  padding: 30px 26px 20px;
  background-image:
    linear-gradient(184deg, rgba(10, 17, 25, 0.28), rgba(13, 22, 32, 0.62) 55%, var(--card-bg) 96%),
    url("./assets/header-bg.jpg");
  background-size: cover;
  background-position: center 32%;
}

.card[data-surface="paper"] .card-header {
  background-image: linear-gradient(184deg, #f9f3e6, var(--card-bg) 90%);
  border-bottom: 1px solid var(--line-soft);
}

.header-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.seal {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: var(--seal, #c13f2e);
  color: #f8f1e2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  padding: 5px;
  box-shadow:
    inset 0 0 0 1.5px rgba(248, 241, 226, 0.55),
    inset 0 0 0 5px var(--seal, #c13f2e),
    inset 0 0 12px rgba(0, 0, 0, 0.25),
    0 4px 14px rgba(0, 0, 0, 0.35);
  font-family: var(--serif);
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
  transform: rotate(-2deg);
}

.seal span {
  display: block;
}

.identity {
  flex: 1;
  min-width: 0;
}

.name {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 0.14em;
  margin: 4px 0 6px;
}

.role-line {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  opacity: 0.92;
}

.role-sub {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-top: 5px;
  font-weight: 500;
}

.loc-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  margin-top: 6px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ---------- 格言 ---------- */

.motto {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px 4px;
}

.motto .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}

.motto .rule:last-child {
  background: linear-gradient(90deg, var(--line), transparent);
}

.motto-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.22em;
  color: var(--gold);
  white-space: nowrap;
}

.motto-caption {
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: var(--muted);
  padding: 0 26px 2px;
}

/* ---------- 六同环 ---------- */

.ring-section {
  padding: 20px 22px 4px;
}

.eyebrow-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.eyebrow {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.28em;
}

.eyebrow-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.ring-wrap {
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.ring-inner {
  position: relative;
  width: 300px;
  height: 300px;
}

@media (max-width: 359px) {
  .ring-inner {
    transform: scale(0.88);
    transform-origin: top center;
  }
}

.ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112px;
  height: 112px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background:
    radial-gradient(circle at 50% 38%, rgba(201, 168, 106, 0.08), transparent 65%);
}

.hub::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed var(--line-soft);
}

.hub-char {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 46px;
  line-height: 1;
  color: var(--gold);
  animation: hubIn 0.45s ease both;
}

.hub-label {
  font-size: 9.5px;
  letter-spacing: 0.32em;
  color: var(--muted);
  text-indent: 0.32em;
}

@keyframes hubIn {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  color: var(--text);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.node svg {
  width: 15px;
  height: 15px;
  opacity: 0.75;
}

.node:hover {
  border-color: var(--gold);
  transform: translate(-50%, -50%) scale(1.05);
}

.node.active {
  background: var(--seal, #c13f2e);
  border-color: transparent;
  color: #f8f1e2;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--seal, #c13f2e) 42%, transparent);
}

.node.active svg {
  opacity: 1;
}

/* ---------- 连接点详情 ---------- */

.detail {
  margin: 18px 4px 0;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--chip-bg);
  padding: 15px 17px 13px;
  animation: detailIn 0.4s ease both;
  min-height: 148px;
}

@keyframes detailIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detail-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.detail-head svg {
  width: 19px;
  height: 19px;
  color: var(--gold);
  flex: none;
}

.detail-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: 0.06em;
}

.detail-body {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text);
  opacity: 0.88;
  text-wrap: pretty;
  margin: 0;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.detail-tags span {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- 愿景 ---------- */

.vision {
  margin: 18px 22px 0;
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, var(--gold-faint), transparent 72%);
  padding: 11px 15px;
  border-radius: 0 10px 10px 0;
}

.vision-label {
  font-size: 10.5px;
  letter-spacing: 0.34em;
  color: var(--gold);
  margin-bottom: 4px;
  font-weight: 700;
}

.vision-text {
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.92;
  text-wrap: pretty;
}

/* ---------- 联系区 ---------- */

.contact {
  padding: 20px 22px 8px;
}

.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.contact-chip svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

a.contact-chip:hover {
  border-color: var(--gold);
}

.actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.action-btn svg {
  width: 16px;
  height: 16px;
}

.action-btn:hover {
  transform: translateY(-1px);
}

.action-btn:active {
  transform: translateY(0);
}

.action-btn.primary {
  background: var(--seal, #c13f2e);
  border-color: transparent;
  color: #f8f1e2;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--seal, #c13f2e) 38%, transparent);
}

/* ---------- 卡脚 ---------- */

.card-footer {
  padding: 18px 26px 22px;
  text-align: center;
}

.foot-quote {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 7px;
}

.foot-org {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  opacity: 0.75;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%) translateY(6px);
  background: rgba(20, 30, 42, 0.94);
  border: 1px solid rgba(201, 168, 106, 0.4);
  color: #ede6d6;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 13px;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 60;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- 动效可关闭 ---------- */

@media (prefers-reduced-motion: reduce) {
  .hub-char,
  .detail {
    animation: none;
  }
  .node,
  .node:hover,
  .action-btn {
    transition: none;
  }
}
