/*═══════════════════════════════════════*\
   /bio · 船长名片（X 主页链接落地页）
   手机优先：深海名片 + 纸面卡片，沿用「出海志」配色
\*═══════════════════════════════════════*/

.bio-body {
  min-height: 100vh;
  background:
    radial-gradient(90% 60% at 50% 0%, var(--paper-deep) 0%, transparent 70%),
    var(--paper);
}

.bio {
  max-width: 460px;
  margin: 0 auto;
  padding: 0 0 calc(40px + env(safe-area-inset-bottom));
}

/* 入场：错落浮现 */
.bio-in { animation: bio-up 0.7s var(--ease-out) backwards; animation-delay: calc(var(--d, 0) * 70ms + 80ms); }
@keyframes bio-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }


/*═══════════ 船长名片 ═══════════*/

.bio-card {
  position: relative; overflow: hidden;
  padding: calc(14px + env(safe-area-inset-top)) 22px 34px;
  background:
    radial-gradient(120% 80% at 15% 0%, var(--sea-mid) 0%, var(--sea-deep) 65%);
  color: var(--foam-bright);
  text-align: center;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 30px 60px -36px rgba(10, 34, 45, 0.7);
}

:root[data-theme="dark"] .bio-card { box-shadow: 0 0 0 1px var(--sea-line), 0 30px 60px -36px rgba(0, 0, 0, 0.8); }

/* 航图刻度底纹 */
.bio-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--sea-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--sea-line) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(80% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
}

.bio-card > * { position: relative; }

.bc-top {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10.5px; letter-spacing: 0.22em; color: var(--foam);
}

.bc-theme {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--sea-line); color: var(--foam-bright);
  transition: background 0.25s;
}
.bc-theme:hover { background: rgba(255, 255, 255, 0.06); }
.bc-theme svg { width: 17px; height: 17px; }
.bc-theme .i-sun { display: none; }
:root[data-theme="dark"] .bc-theme .i-sun { display: block; }
:root[data-theme="dark"] .bc-theme .i-moon { display: none; }

.bc-avatar {
  position: relative;
  width: 88px; height: 88px;
  margin: 8px auto 0;
}
.bc-avatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(216, 236, 239, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 8px rgba(156, 200, 209, 0.06);
}
.bc-seal {
  position: absolute; right: -6px; bottom: -2px;
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--signal); color: #F8F3EA;
  font-family: var(--serif); font-size: 18px; font-weight: 700; line-height: 1;
  transform: rotate(-6deg);
  box-shadow: 0 8px 20px rgba(194, 87, 27, 0.45);
}

.bc-name {
  margin-top: 12px;
  font-family: var(--serif); font-weight: 700;
  font-size: 38px; line-height: 1.1; letter-spacing: 0.08em;
  color: var(--foam-bright);
}
.bc-name small {
  display: block; margin-top: 6px;
  font-size: 12.5px; font-weight: 400; letter-spacing: 0.12em;
  color: var(--foam);
}

.bc-title {
  display: inline-block; margin-top: 10px;
  padding: 5px 14px; border-radius: 99px;
  border: 1px solid var(--sea-line);
  font-size: 12.5px; letter-spacing: 0.1em; color: var(--foam);
}

.bc-lede {
  margin-top: 10px;
  font-family: var(--serif); font-size: 15px; line-height: 1.75;
  color: rgba(216, 236, 239, 0.86);
}

.bc-stats {
  margin-top: 16px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--sea-line); border-bottom: 1px solid var(--sea-line);
}
.bc-stats li { padding: 8px 4px; }
.bc-stats li + li { border-left: 1px solid var(--sea-line); }
.bc-stats b { display: block; font-size: 20px; font-weight: 600; color: #7FD0DD; letter-spacing: 0.02em; }
.bc-stats span { display: block; margin-top: 2px; font-size: 11px; color: var(--foam); letter-spacing: 0.04em; }

.bc-social {
  margin-top: 14px;
  display: flex; justify-content: center; gap: 12px;
}
.bc-social a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--sea-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--foam-bright);
  transition: transform 0.3s var(--ease-out), background 0.3s, border-color 0.3s;
}
.bc-social a:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.08); border-color: rgba(156, 200, 209, 0.4); }
.bc-social svg { width: 20px; height: 20px; }

/* 名片底部海浪 */
.bc-waves {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 44px;
}
.bc-waves .w1 { fill: rgba(156, 200, 209, 0.08); animation: wave-drift 9s ease-in-out infinite alternate; }
.bc-waves .w2 { fill: rgba(156, 200, 209, 0.12); animation: wave-drift 12s ease-in-out infinite alternate-reverse; }
@keyframes wave-drift { from { transform: translateX(0); } to { transform: translateX(-50px); } }


/*═══════════ 纸面区块 ═══════════*/

.bio-sec { padding: 16px 18px 0; }

.bs-title {
  display: flex; align-items: baseline; gap: 10px;
  margin: 0 4px 10px;
  font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--ink);
}
.bs-title .mono { font-size: 11px; letter-spacing: 0.2em; color: var(--signal); }

/* 通用卡片 */
.b-card {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--rule); border-radius: 18px;
  color: var(--ink);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.b-card + .b-card { margin-top: 12px; }
.b-card:hover, .b-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: 0 18px 36px -24px rgba(11, 75, 88, 0.45);
}
.b-card:active { transform: scale(0.985); }

.b-ico {
  flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center; overflow: hidden;
  background: var(--paper-deep); color: var(--teal);
}
.b-ico img { width: 100%; height: 100%; object-fit: cover; }
.b-ico svg { width: 26px; height: 26px; }

.b-main { flex: 1; min-width: 0; }
.b-main > span { display: block; }
.b-k { font-size: 10.5px; letter-spacing: 0.16em; color: var(--ink-soft); }
.b-name { font-size: 16.5px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.b-name .mono { font-weight: 600; letter-spacing: 0.02em; }
.b-desc { margin-top: 2px; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }

.b-act {
  flex-shrink: 0;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  padding: 7px 13px; border-radius: 99px;
  background: var(--teal); color: #fff;
}
.b-arrow { flex-shrink: 0; font-size: 18px; color: var(--ink-soft); transition: transform 0.3s var(--ease-out), color 0.3s; }
.b-card:hover .b-arrow { transform: translate(2px, -2px); color: var(--teal); }
.b-qr svg { width: 22px; height: 22px; display: block; }
.b-card:hover .b-qr { transform: scale(1.1); }

/* 商务微信：信号橙主卡 */
.b-card.is-hot {
  border-color: rgba(194, 87, 27, 0.45);
  background:
    linear-gradient(135deg, rgba(194, 87, 27, 0.08), transparent 60%),
    var(--card);
}
.b-card.is-hot .b-ico { background: rgba(194, 87, 27, 0.12); color: var(--signal); }
.b-card.is-hot .b-k { color: var(--signal); }
.b-card.is-hot .b-act { background: var(--signal); }

.bio-biz {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding: 12px 18px;
  border: 1px dashed var(--rule); border-radius: 14px;
  font-size: 13.5px; color: var(--ink-soft);
  transition: color 0.25s, border-color 0.25s;
}
.bio-biz:hover { color: var(--teal); border-color: var(--teal); }

/* 产品卡 */
.b-tag {
  display: inline-block; vertical-align: 2px; margin-left: 6px;
  padding: 1px 8px; border-radius: 99px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em;
  background: var(--paper-deep); color: var(--ink-soft);
}
.b-card.is-featured {
  border-color: transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(120deg, var(--teal), var(--signal)) border-box;
  border: 1.5px solid transparent;
}
.b-card.is-featured .b-tag { background: var(--signal); color: #fff; }
.b-card.is-featured .b-ico { box-shadow: 0 8px 18px -10px rgba(16, 105, 122, 0.6); }

/* 站内精选 */
.bio-onsite {
  border: 1px solid var(--rule); border-radius: 18px;
  background: var(--card); overflow: hidden;
}
.bo-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  transition: background 0.25s;
}
.bo-row + .bo-row { border-top: 1px solid var(--rule); }
.bo-row:hover { background: var(--paper-deep); }
.bo-no { font-size: 11px; color: var(--signal); letter-spacing: 0.1em; }
.bo-name { font-weight: 700; font-size: 15px; }
.bo-note { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-soft); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bio-foot {
  margin-top: 36px; padding: 0 22px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 0.14em; color: var(--ink-soft);
}
.bio-foot a { color: var(--teal); font-size: 13px; letter-spacing: 0.2em; border-bottom: 1px dashed var(--teal); padding: 8px 2px 2px; }


/*═══════════ 二维码弹层 ═══════════*/

.qr-sheet { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center; }
.qr-sheet[hidden] { display: none; }
.qs-backdrop { position: absolute; inset: 0; background: rgba(6, 20, 27, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: qs-fade 0.25s ease; }
.qs-panel {
  position: relative;
  width: 100%; max-width: 460px;
  padding: 26px 24px calc(24px + env(safe-area-inset-bottom));
  background: var(--card); color: var(--ink);
  border-radius: 24px 24px 0 0;
  text-align: center;
  animation: qs-up 0.38s var(--ease-out);
}
.qs-x {
  position: absolute; top: 12px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 24px; line-height: 1; color: var(--ink-soft);
}
.qs-x:hover { background: var(--paper-deep); }
.qs-eyebrow { font-size: 10.5px; letter-spacing: 0.2em; color: var(--signal); }
.qs-panel h3 { margin-top: 6px; font-family: var(--serif); font-size: 21px; }
.qs-qr {
  width: 236px; margin: 18px auto 0; padding: 8px;
  background: #fff; border-radius: 16px; border: 1px solid var(--rule);
}
.qs-qr img { width: 220px; height: 220px; }
.qs-tip { margin-top: 14px; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.qs-copy {
  margin-top: 16px; width: 100%;
  padding: 13px; border-radius: 99px;
  background: var(--teal); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: 0.04em;
}
.qs-copy[hidden] { display: none; }
@keyframes qs-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes qs-fade { from { opacity: 0; } to { opacity: 1; } }

.bio-toast {
  position: fixed; left: 50%; top: calc(18px + env(safe-area-inset-top)); z-index: 130;
  transform: translate(-50%, -20px);
  white-space: nowrap;
  padding: 10px 18px; border-radius: 99px;
  background: var(--sea-deep); color: var(--foam-bright);
  font-size: 13.5px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.bio-toast.show { opacity: 1; transform: translate(-50%, 0); }


/*═══════════ 桌面：居中名片 ═══════════*/

@media (min-width: 620px) {
  .bio { padding-top: 40px; }
  .bio-card { border-radius: 28px; padding-top: 22px; }
  .qr-sheet { align-items: center; }
  .qs-panel { border-radius: 24px; max-width: 380px; animation: qs-fade 0.25s ease; }
}

@media (max-width: 360px) {
  .bc-name { font-size: 34px; }
  .bc-stats b { font-size: 19px; }
  .bc-social { gap: 8px; }
  .bc-social a { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .bio-in, .bc-waves path, .qs-panel, .qs-backdrop { animation: none; }
}
