/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  /* 主色：深邃商务蓝 + 金色点缀 */
  --primary: #1e3a8a;
  --primary-2: #2563eb;
  --primary-3: #1e40af;
  --accent: #3b82f6;
  --gold: #c9a96e;
  --gold-light: #e8d5a8;
  --gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  --gradient-gold: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #c9a96e 100%);
  --gradient-soft: linear-gradient(135deg, rgba(30, 58, 138,0.10), rgba(37, 99, 235,0.08), rgba(201, 169, 110,0.08));

  --text: #0f172a;
  --text-soft: #64748b;
  --text-light: #94a3b8;
  --card: rgba(255, 255, 255, 0.96);
  --card-solid: #ffffff;
  --border: rgba(255, 255, 255, 0.7);
  --border-dark: rgba(15, 23, 42, 0.07);
  --border-soft: rgba(15, 23, 42, 0.06);
  /* 商务向：细金边 / 实色深蓝 / 收敛阴影 */
  --gold-border: rgba(201, 169, 110, 0.5);
  --gold-line: rgba(201, 169, 110, 0.65);
  --gold-deep: #9a7b3f;
  --blue-solid: #1e3a8a;
  --shadow: 0 20px 48px -24px rgba(15, 23, 42, 0.38), 0 6px 16px -10px rgba(15, 23, 42, 0.12);
  --shadow-sm: 0 6px 16px -10px rgba(15, 23, 42, 0.28);
  --radius: 20px;
  /* 区块卡片容器：让每个区块独立突出、层次分明 */
  --section-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.74) 0%, rgba(248, 250, 252, 0.58) 100%);
  --section-border: rgba(201, 169, 110, 0.38);
  --section-radius: 16px;
  --section-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px -14px rgba(15, 23, 42, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  --section-top-line: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.75) 50%, transparent);
  --section-padding: 17px 17px 19px;
  --section-gap: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: 100vh;
  color: var(--text);
  background-color: #0f2050;
  background-image:
    /* 极淡科技网格线 */
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    /* 深藏青 → 蓝灰 对角渐变 */
    linear-gradient(160deg, #0f2050 0%, #14306e 45%, #1a3f82 100%);
  background-size: 46px 46px, 46px 46px, cover;
  background-position: center, center, center;
  background-repeat: repeat, repeat, no-repeat;
  background-attachment: fixed, fixed, fixed;
  line-height: 1.6;
  padding: calc(var(--safe-top) + 18px) 16px calc(var(--safe-bottom) + 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}
/* 细点纹理，增加质感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

/* ===== 背景装饰光晕（增强：更大、更柔、更多彩） ===== */
.bg-decoration { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; display: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.18; mix-blend-mode: normal; }
.blob-1 { width: 380px; height: 380px; background: radial-gradient(circle at 30% 30%, #60a5fa, #1e3a8a); top: -110px; left: -90px; animation: float 18s ease-in-out infinite; }
.blob-2 { width: 320px; height: 320px; background: radial-gradient(circle at 40% 40%, #e8d5a8, #c9a96e); top: 28%; right: -110px; opacity: 0.14; animation: float 20s ease-in-out infinite reverse; }
.blob-3 { width: 360px; height: 360px; background: radial-gradient(circle at 50% 50%, #93c5fd, #3b82f6); bottom: -130px; left: 15%; opacity: 0.13; animation: float 19s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(28px, -36px) scale(1.12); }
}

/* 页面宽度容器：顶栏与卡片严格同宽居中对齐 */
.page { width: 100%; max-width: 440px; }

/* ===== 顶部栏（左 logo + 右语言切换） ===== */
.top-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  position: relative;
  z-index: 5;
}
.top-logo-wrap {
  display: flex;
  align-items: center;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 18px -6px rgba(30, 58, 138, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.top-logo {
  display: block;
  height: 26px;
  width: auto;
}

/* ===== 语言切换（下拉） ===== */
.lang-switcher {
  position: relative;
  z-index: 60;
}
.lang-trigger {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  gap: 7px;
  padding: 7px 12px 7px 14px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  box-shadow: 0 6px 18px -6px rgba(30, 58, 138, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}
.lang-trigger:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.88);
}
.lang-caret {
  display: block;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.lang-globe {
  display: block;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--primary);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.6s ease;
}
.lang-trigger:hover .lang-globe {
  transform: rotate(360deg);
}
.lang-current {
  line-height: 1;
}
.lang-switcher.is-open .lang-caret { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  min-width: 132px;
  list-style: none;
  margin: 0;
  padding: 5px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
.lang-dropdown[hidden] { display: none; }
.lang-switcher.is-open .lang-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.lang-dropdown li { margin: 0; }
.lang-dropdown .lang-btn {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease;
  font-family: inherit;
  letter-spacing: 0.2px;
}
.lang-dropdown .lang-btn:hover {
  background: rgba(30, 58, 138, 0.08);
  color: var(--text);
}
.lang-dropdown .lang-btn.active {
  background: var(--blue-solid);
  color: #fff;
  box-shadow: 0 3px 10px -3px rgba(30, 58, 138, 0.5);
}

/* ===== 顶部右侧：音乐按钮 + 语言切换 ===== */
.top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.music-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  line-height: 1;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  box-shadow: 0 6px 18px -6px rgba(30, 58, 138, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  color: var(--primary);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}
.music-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.88);
}
.music-toggle:active { transform: translateY(0); }
.music-toggle .music-icon {
  display: block;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.music-toggle .music-icon-off { display: none; }
.music-toggle.is-off .music-icon-on { display: none; }
.music-toggle.is-off .music-icon-off { display: block; }
.music-toggle.is-playing .music-icon-on {
  animation: musicPulse 1.8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes musicPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .music-toggle.is-playing .music-icon-on { animation: none; }
}

/* ===== 主卡片（高级玻璃拟态） ===== */
.card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: var(--card);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 32px 22px 26px;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* 卡片顶部金色高光条 */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0.9;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 个人信息 ===== */
.profile { text-align: center; padding: 4px 0 20px; }
.avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, #a8854a);
}
/* 外层细金线：静态，取代原脉冲发光 */
.avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  background: transparent;
  z-index: -1;
}
.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.35);
  background: var(--blue-solid);
  display: block;
}
.online-dot {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 20px;
  height: 20px;
  background: #22c55e;
  border: 3px solid #fff;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 11px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text);
}
.title { font-size: 15.5px; color: var(--primary-2); font-weight: 700; margin-top: 4px; letter-spacing: 0.3px; }
.company { font-size: 15.5px; color: var(--text-soft); margin-top: 3px; font-weight: 500; }

/* ===== Profile 商务背景头图 ===== */
.profile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(6, 12, 24, 0.92) 0%, rgba(6, 12, 24, 0.32) 42%, rgba(6, 12, 24, 0.5) 100%),
    radial-gradient(circle at 18% 22%, rgba(212, 175, 106, 0.4) 0, transparent 36%),
    radial-gradient(circle at 84% 78%, rgba(212, 175, 106, 0.3) 0, transparent 40%),
    radial-gradient(circle, rgba(212, 175, 106, 0.5) 1px, transparent 1.5px),
    linear-gradient(160deg, #0a1730 0%, #162f55 50%, #0a1730 100%);
  background-size: auto, auto, auto, 26px 26px, auto;
}
.profile::before { z-index: 1; }
.profile > * { position: relative; z-index: 1; }
.profile .name {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.profile .title { color: #e8c886; }
.profile .company { color: rgba(255, 255, 255, 0.82); }
.tagline {
  font-size: 12.5px; color: var(--text-light); margin-top: 10px; font-style: italic;
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.7);
}

/* ===== 浏览与点赞互动栏 ===== */
.interaction-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: var(--section-gap);
  padding: 10px 14px;
  background: var(--section-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--section-border);
  border-radius: var(--section-radius);
  box-shadow: var(--section-shadow);
  animation: fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.12s;
}
.visitors { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
/* 头像组 与 浏览人数：两整块上下切换轮播 */
.visitor-switcher {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 40px;
  overflow: hidden;
}
.switch-track {
  display: flex;
  flex-direction: column;
  animation: switch-vertical 5s ease-in-out infinite;
  will-change: transform;
}
.visitor-switcher:hover .switch-track { animation-play-state: paused; }
.switch-slide {
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
/* slide 内：横向重叠的头像组 */
.avatar-group { display: flex; align-items: center; }
.avatar-group img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  margin-left: -10px;
  background: #e2e8f0;
}
.avatar-group img:first-child { margin-left: 0; }
@keyframes switch-vertical {
  0%, 40%   { transform: translateY(0); }     /* 头像组（停留 2s） */
  50%, 90%  { transform: translateY(-25%); }  /* 浏览人数（停留 2s） */
  100%      { transform: translateY(-50%); }  /* 回到头像组（第二份），无缝循环 */
}
.view-count {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--text-soft);
  font-weight: 600;
  white-space: nowrap;
}
.view-count svg { width: 15px; height: 15px; color: var(--primary-2); flex-shrink: 0; }
.view-count #viewCount { color: var(--text); font-weight: 700; }
.like-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  background: var(--blue-solid);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 5px 14px -5px rgba(15, 23, 42, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.like-btn svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.like-btn:hover { transform: translateY(-1px); background: #1a3374; box-shadow: 0 8px 20px -5px rgba(15, 23, 42, 0.5); }
.like-btn:active { transform: scale(0.95); }
.like-btn.liked svg { fill: currentColor; animation: like-pop 0.4s ease; }
.like-btn.liked #likeCount { animation: count-bump 0.3s ease; }
@keyframes like-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4) rotate(-12deg); }
  100% { transform: scale(1); }
}
@keyframes count-bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* ===== 通用区块（逐个淡入） ===== */
/* 区块卡片容器：让每个区块独立突出、层次分明 */
.profile, .section, .actions {
  position: relative;
  background: var(--section-bg);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid var(--section-border);
  border-radius: var(--section-radius);
  box-shadow: var(--section-shadow);
  padding: var(--section-padding);
  overflow: hidden;
}
/* 区块顶部居中短金线：精致高光装饰 */
.profile::before, .section::before, .actions::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 42%;
  height: 1px;
  background: var(--section-top-line);
  opacity: 0.85;
  pointer-events: none;
}
.section { margin-top: var(--section-gap); animation: fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.section:nth-of-type(1) { animation-delay: 0.1s; }
.section:nth-of-type(2) { animation-delay: 0.18s; }
.section:nth-of-type(3) { animation-delay: 0.26s; }
.section:nth-of-type(4) { animation-delay: 0.34s; }
.section:nth-of-type(5) { animation-delay: 0.42s; }
.section:nth-of-type(6) { animation-delay: 0.5s; }
.section:nth-of-type(7) { animation-delay: 0.58s; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.section-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
}
.section-title::before {
  content: "";
  display: inline-block;
  width: 25px;
  height: 20px;
  flex-shrink: 0;
  background: url("../img/logo2.png") no-repeat center / contain;
  border-radius: 19px;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 6px;
  background: linear-gradient(90deg, var(--gold-line), transparent);
  opacity: 0.55;
}
.section-text { font-size: 14px; color: var(--text-soft); line-height: 1.8; }

/* ===== 联系方式 ===== */
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background 0.25s;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  box-shadow: 0 4px 14px -8px rgba(30, 58, 138, 0.2);
}
.contact-item:active { transform: scale(0.98); }
.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(30, 64, 175, 0.35);
  background: rgba(255, 255, 255, 0.92);
}
.contact-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-solid);
  color: #fff;
  border: 1px solid var(--gold-border);
  box-shadow: 0 5px 14px -5px rgba(15, 23, 42, 0.4);
}
.contact-icon svg { width: 19px; height: 19px; }
.contact-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.contact-label { font-size: 10.5px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; }
.contact-value { font-size: 14.5px; color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.contact-value[data-i18n="addressValue"] {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
  line-height: 1.55;
}
.contact-action {
  font-size: 12px;
  color: #fff;
  background: var(--blue-solid);
  padding: 6px 14px;
  border-radius: 999px;
  flex-shrink: 0;
  font-weight: 700;
  border: 1px solid var(--gold-border);
  box-shadow: 0 4px 10px -4px rgba(15, 23, 42, 0.4);
  transition: transform 0.2s ease;
}
.contact-action:hover { transform: scale(1.05); }

/* ===== 技能标签 ===== */
.skill-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.skill-tag {
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--blue-solid);
  color: #fff;
  border: 1px solid var(--gold-border);
  box-shadow: 0 5px 14px -5px rgba(15, 23, 42, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.skill-tag:hover { transform: translateY(-2px); background: #1a3374; box-shadow: 0 9px 20px -6px rgba(15, 23, 42, 0.5); }

/* ===== 社交链接 ===== */
.social-row { display: flex; gap: 10px; }
.social-btn {
  flex: 1;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--text-soft);
  text-decoration: none;
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 12px -8px rgba(30, 58, 138, 0.25);
}
.social-btn svg { width: 21px; height: 21px; transition: transform 0.28s ease; }
.social-btn:hover {
  color: #fff;
  background: var(--blue-solid);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px -6px rgba(15, 23, 42, 0.45);
  border-color: var(--gold-border);
}
.social-btn:hover svg { transform: scale(1.12); }

/* ===== 操作按钮 ===== */
.actions { margin-top: var(--section-gap); display: none; flex-direction: column; gap: 11px; }
.btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 16px;
  font-size: 15.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.4px;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}
.btn svg { width: 19px; height: 19px; }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--blue-solid);
  color: #fff;
  border: 1px solid var(--gold-border);
  box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.btn-primary:hover { transform: translateY(-2px); background: #1a3374; box-shadow: 0 14px 30px -8px rgba(15, 23, 42, 0.55); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--primary-2);
  border: 1px solid rgba(30, 64, 175, 0.35);
  box-shadow: 0 4px 14px -8px rgba(30, 58, 138, 0.25);
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.95); box-shadow: 0 10px 22px -8px rgba(30, 64, 175, 0.4); }

/* ===== 页脚 ===== */
.footer { margin-top: 20px; text-align: center; position: relative; z-index: 2; }
.footer p { font-size: 12px; color: var(--text-light); }

/* ===== 底部导航栏 ===== */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 12px);
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.4), 0 3px 10px -5px rgba(15, 23, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  z-index: 100;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 4px;
  border: none;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav-item:active { transform: scale(0.94); opacity: 0.85; }
.nav-icon { width: 21px; height: 21px; display: block; }
.nav-label {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1px;
  white-space: nowrap;
}
/* 主操作：转发名片，深蓝胶囊高亮 */
.nav-item.nav-forward {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 5px 16px -5px rgba(30, 58, 138, 0.6);
}

/* ===== 纸质名片模态框 ===== */
.modal-mask {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-mask[hidden] { display: none; }
.modal-mask.show {
  opacity: 1;
  visibility: visible;
}
.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.5), 0 0 0 1px rgba(201, 169, 110, 0.25);
  transform: translateY(16px) scale(0.96);
  transition: transform 0.25s ease;
}
.modal-mask.show .modal-dialog {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: none;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(15, 23, 42, 0.12); }
.paper-card-img,
.qr-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px -10px rgba(15, 23, 42, 0.25);
}
.qr-img { margin-bottom: 4px; }
.modal-save {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.modal-save svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== 产品图片预览模态框 ===== */
#productModal .modal-dialog {
  max-height: 88vh;
  overflow-y: auto;
}
.product-modal-img {
  display: block;
  width: 100%;
  max-height: 55vh;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 14px;
  background: #f1f5f9;
}
.product-modal-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 28px 8px 0;
}
.product-modal-desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
  white-space: pre-line;
  word-break: break-word;
}

/* ===== Toast 提示 ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 92px);
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.3);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== 滑动容器通用 ===== */
.slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 2px 6px;
  margin: 0 -2px;
}
.slider::-webkit-scrollbar { display: none; }
.slider .slide {
  scroll-snap-align: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 圆点指示器 */
.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}
.slider-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.slider-dots .dot.active {
  width: 22px;
  border-radius: 999px;
  background: var(--gradient);
  box-shadow: 0 0 10px rgba(30, 64, 175, 0.5);
}

/* ===== 公司环境 ===== */
.env-desc { margin-bottom: 12px; }
.env-slider .env-item {
  position: relative;
  width: calc(100% - 40px);
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card-solid);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 26px -10px rgba(30, 58, 138, 0.35);
}
.env-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.env-item:hover img { transform: scale(1.06); }
.env-item video {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  background: #000;
}
.env-item figcaption {
  font-size: 13px;
  color: #fff;
  padding: 10px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0));
  position: absolute;
  bottom: 0; left: 0; right: 0;
}

/* ===== 公司产品 ===== */
.product-desc { margin-bottom: 12px; }
.product-slider .product-card {
  width: calc(100% - 40px);
  display: flex;
  flex-direction: column;
  background: var(--card-solid);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px -12px rgba(30, 58, 138, 0.38);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-slider .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px -12px rgba(30, 64, 175, 0.5);
}
.product-card .product-img {
  position: relative;
  width: 100%;
  height: 150px;
  flex-shrink: 0;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img img { transform: scale(1.07); }
/* 图片底部渐变，让文字区过渡更自然 */
.product-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.55), transparent 45%);
  pointer-events: none;
}
.product-card .product-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
}
.product-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}
.product-desc-text {
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 10px;
}
.product-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-2);
  text-decoration: none;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.product-link:hover { gap: 8px; color: var(--primary-3); }

/* ===== 公司产品：分类标签 + 网格 ===== */
.product-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 10px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.product-tabs::-webkit-scrollbar { display: none; }
.product-tab {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(200, 164, 92, 0.35);
  cursor: pointer;
  scroll-snap-align: start;
  white-space: nowrap;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.product-tab:hover { color: var(--primary-3); border-color: var(--gold); }
.product-tab.active {
  background: var(--blue-solid);
  color: #fff;
  border-color: var(--gold-border);
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.4);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.product-grid .product-card {
  width: 100%;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--gold-border);
  box-shadow: 0 6px 18px -10px rgba(5, 15, 31, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-grid .product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px -12px rgba(5, 15, 31, 0.4);
}
.product-grid .product-card .product-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px 14px 0 0;
  cursor: pointer;
}
/* 点击提示：hover 时右上角显示放大镜角标 */
.product-grid .product-card .product-img::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center/14px no-repeat;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
  pointer-events: none;
}
.product-grid .product-card:hover .product-img::before { opacity: 1; }
.product-grid .product-name {
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-grid .product-desc-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11.5px;
}
.product-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
  padding: 30px 0;
}
.product-more {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 4px;
  padding: 8px 28px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary-3);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.product-more:hover {
  background: var(--blue-solid);
  color: #fff;
  border-color: var(--gold-border);
}

/* ===== 更多关联企业 ===== */
.related-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--primary-3);
  border: 1px solid rgba(200, 164, 92, 0.45);
  box-shadow: 0 4px 12px -6px rgba(200, 164, 92, 0.4);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.related-toggle:hover {
  transform: translateY(-1px);
  background: var(--blue-solid);
  color: #fff;
  border-color: var(--gold-border);
}
.related-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.25s ease;
}
.related-toggle.is-open::after { transform: rotate(-135deg) translateY(1px); }
.related-list {
  list-style: none;
  margin: 12px auto 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
}
.related-list[hidden] { display: none; }
.related-item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  font-size: 12.5px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(200, 164, 92, 0.3);
  box-shadow: 0 4px 12px -8px rgba(5, 15, 31, 0.25);
}
.related-role {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold-deep);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(200, 164, 92, 0.14);
  border: 1px solid rgba(200, 164, 92, 0.4);
}
.related-name {
  color: var(--text-soft);
  font-weight: 500;
  line-height: 1.4;
}

/* ===== 认证徽章 ===== */
.verified-badge {
  display: flex;
  width: fit-content;
  margin: 0 auto 14px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--gold-deep);
  background: rgba(200, 164, 92, 0.1);
  border: 1px solid rgba(200, 164, 92, 0.4);
  box-shadow: 0 4px 12px -6px rgba(200, 164, 92, 0.45);
}
.verified-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--gold);
}

/* ===== 桌面端适配（手机居中显示） ===== */
@media (min-width: 600px) {
  body { padding-top: calc(var(--safe-top) + 44px); }
  .card { max-width: 430px; }
  .page { max-width: 430px; }
}
@media (min-width: 900px) {
  body { padding-top: calc(var(--safe-top) + 64px); }
}

/* ===== 减少动效偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
