/* ========== CSS 变量 ========== */
:root {
  --color-primary: #4F46E5;
  --color-primary-light: #818CF8;
  --color-primary-dark: #3730A3;
  --color-accent: #F59E0B;
  --color-success: #10B981;
  --color-danger: #EF4444;
  --color-text: #1E293B;
  --color-text-secondary: #64748B;
  --color-text-light: #94A3B8;
  --color-bg: #F8FAFC;
  --color-card: #FFFFFF;
  --color-border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  --gradient-card: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
}

/* ========== Reset ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ========== 通用容器 ========== */
.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--color-bg);
  position: relative;
}

/* ========== Hero 区域 ========== */
.hero {
  background: var(--gradient-primary);
  padding: 48px 24px 32px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.hero-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.hero-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.hero-slogan {
  font-size: 14px;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

/* ========== 卡片通用 ========== */
.section {
  padding: 24px 20px 0;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}

/* ========== 公司简介 ========== */
.company-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  white-space: pre-line;
}

/* ========== 数据亮点 ========== */
.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.highlight-item {
  text-align: center;
  padding: 12px 4px;
  background: rgba(79, 70, 229, 0.06);
  border-radius: var(--radius-sm);
}

.highlight-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}

.highlight-label {
  font-size: 11px;
  color: var(--color-text-light);
  margin-top: 2px;
}

/* ========== 业务服务 ========== */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-item {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.service-item:active {
  transform: scale(0.96);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.service-desc {
  font-size: 12px;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* 板块项目：上传图标 / 无图标兜底 */
.service-icon-img {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 14px;
  object-fit: cover;
}

.service-icon-fallback {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

/* ========== 联系人卡片列表 ========== */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-md);
}

.contact-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-name {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-title {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.contact-arrow {
  color: var(--color-text-light);
  font-size: 20px;
}

/* ========== 小程序入口按钮 ========== */
.mini-program-btn-wrapper {
  padding: 24px 20px 32px;
}

.mini-program-btn {
  width: 100%;
  background: var(--gradient-primary);
  color: white;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
  transition: transform 0.2s;
}

.mini-program-btn:active {
  transform: scale(0.97);
}

.mini-program-btn svg {
  width: 22px;
  height: 22px;
}

/* ========== 名片详情页 ========== */
/* ========== 名片页：深色毛玻璃主题 ========== */

.card-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;

  /* ---- 主题设计 token（默认 = classic 商务蓝） ---- */
  /* 商务蓝 · 干净深蓝（无紫无粉） */
  --bg-gradient: linear-gradient(160deg, #0A2540 0%, #143A66 45%, #1C4E8A 100%);
  --text-strong: #FFFFFF;
  --text-main: rgba(255, 255, 255, 0.9);
  --text-dim: rgba(226, 236, 250, 0.72);
  --text-faint: rgba(200, 216, 240, 0.5);
  --text-label: rgba(180, 205, 240, 0.45);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-active: rgba(59, 130, 246, 0.16);
  --glass-border: rgba(96, 165, 250, 0.22);
  --glass-label: rgba(147, 197, 253, 0.6);
  --tag-bg: rgba(59, 130, 246, 0.16);
  --tag-text: #BFDBFE;
  --tag-border: rgba(59, 130, 246, 0.3);
  --bio-bar: linear-gradient(180deg, #3B82F6, #60A5FA);
  --avatar-glow: rgba(59, 130, 246, 0.4);
  --ring: conic-gradient(from 0deg, #2563EB, #3B82F6, #93C5FD, #2563EB);
  --orb-1: #3B82F6;
  --orb-2: #60A5FA;
  --orb-3: #1D4ED8;
  --footer-text: rgba(200, 216, 240, 0.3);
  --footer-loading: rgba(200, 216, 240, 0.6);
  --spinner: #60A5FA;
  --spinner-track: rgba(200, 216, 240, 0.15);
  --company-link-bg: rgba(255, 255, 255, 0.08);
  --company-link-border: rgba(96, 165, 250, 0.22);
  --company-link-active: rgba(59, 130, 246, 0.16);

  background: var(--bg-gradient);
}

/* 浮动光斑 */
.bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: orbFloat 18s ease-in-out infinite;
}

.orb-1 {
  width: 220px; height: 220px;
  background: var(--orb-1);
  top: -40px; left: -60px;
  animation-delay: 0s;
}

.orb-2 {
  width: 180px; height: 180px;
  background: var(--orb-2);
  top: 35%; right: -70px;
  animation-delay: -6s;
}

.orb-3 {
  width: 160px; height: 160px;
  background: var(--orb-3);
  bottom: 10%; left: 20%;
  animation-delay: -12s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.1); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Hero 区 */
.card-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 24px 28px;
  color: white;
}

.card-avatar-wrapper {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 20px;
}

.card-avatar-large {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 3px solid var(--glass-border);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 40px var(--avatar-glow);
}

.card-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--ring);
  z-index: 1;
  animation: ringSpin 6s linear infinite;
  opacity: 0.6;
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

.card-name-large {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: var(--text-strong);
}

.card-title-large {
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 400;
}

.card-company-large {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-company-large::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text-faint);
}

/* 内容区 */
.card-content {
  position: relative;
  z-index: 1;
  padding: 0 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 毛玻璃卡片 */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-card-label {
  font-size: 12px;
  color: var(--glass-label);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  font-weight: 600;
}

/* 标签 */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.card-tag {
  font-size: 12px;
  color: var(--tag-text);
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 500;
}

/* 简介 */
.card-bio {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
  position: relative;
  padding-left: 14px;
}

.card-bio::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background: var(--bio-bar);
}

/* 联系方式 */
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-action-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all 0.2s;
}

.contact-action-btn:active {
  background: var(--glass-bg-active);
  transform: scale(0.98);
}

.contact-action-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contact-action-icon svg {
  width: 22px;
  height: 22px;
}

.contact-action-text {
  flex: 1;
  min-width: 0;
}

.contact-action-label {
  font-size: 11px;
  color: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-action-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  margin-top: 1px;
}

.contact-action-arrow {
  color: var(--text-faint);
  font-size: 18px;
}

/* 二维码 */
.glass-card-qr {
  text-align: center;
}

.qrcode-section-title {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-weight: 500;
}

.qrcode-frame {
  display: inline-block;
  padding: 12px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.qrcode-img {
  width: 172px;
  height: 172px;
  border-radius: 8px;
}

.qrcode-tip {
  font-size: 12px;
  color: var(--text-label);
  margin-top: 14px;
}

/* 底部操作 */
.card-footer-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  padding: 4px 18px 24px;
}

.btn-company-link {
  flex: 1;
  background: var(--company-link-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-strong);
  border: 1px solid var(--company-link-border);
  padding: 14px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-company-link:active {
  background: var(--company-link-active);
  transform: scale(0.98);
}

/* 名片页底部 */
.card-page .footer {
  position: relative;
  z-index: 1;
  color: var(--footer-text);
  padding: 0 20px 40px;
}

/* 名片页 loading 适配主题 */
.card-page .loading-text {
  color: var(--footer-loading);
}

.card-page .loading-spinner {
  border-color: var(--spinner-track);
  border-top-color: var(--spinner);
}

/* ========== 名片风格变体（data-style 切换） ========== */

/* 清新绿 · 浅色 */
.card-page[data-style="fresh"] {
  --bg-gradient: linear-gradient(160deg, #E0F2F1 0%, #F1F8E9 50%, #FFFFFF 100%);
  --text-strong: #0F2E1D;
  --text-main: rgba(16, 40, 28, 0.85);
  --text-dim: rgba(16, 40, 28, 0.65);
  --text-faint: rgba(16, 40, 28, 0.5);
  --text-label: rgba(16, 40, 28, 0.45);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-bg-active: rgba(16, 185, 129, 0.12);
  --glass-border: rgba(16, 185, 129, 0.22);
  --glass-label: rgba(16, 185, 129, 0.75);
  --tag-bg: rgba(16, 185, 129, 0.12);
  --tag-text: #047857;
  --tag-border: rgba(16, 185, 129, 0.3);
  --bio-bar: linear-gradient(180deg, #10B981, #34D399);
  --avatar-glow: rgba(16, 185, 129, 0.35);
  --ring: conic-gradient(from 0deg, #10B981, #34D399, #A7F3D0, #10B981);
  --orb-1: #34D399; --orb-2: #10B981; --orb-3: #6EE7B7;
  --footer-text: rgba(16, 40, 28, 0.4);
  --footer-loading: rgba(16, 40, 28, 0.5);
  --spinner: #10B981;
  --spinner-track: rgba(16, 40, 28, 0.12);
  --company-link-bg: rgba(255, 255, 255, 0.6);
  --company-link-border: rgba(16, 185, 129, 0.3);
  --company-link-active: rgba(16, 185, 129, 0.12);
}

/* 科技紫 · 真紫深色 */
.card-page[data-style="tech"] {
  --bg-gradient: linear-gradient(160deg, #160A2E 0%, #241046 50%, #2E1A5E 100%);
  --text-strong: #FFFFFF;
  --text-main: rgba(237, 224, 255, 0.9);
  --text-dim: rgba(216, 196, 245, 0.72);
  --text-faint: rgba(196, 176, 230, 0.5);
  --text-label: rgba(200, 160, 245, 0.45);
  --glass-bg: rgba(168, 85, 247, 0.08);
  --glass-bg-active: rgba(168, 85, 247, 0.16);
  --glass-border: rgba(192, 132, 252, 0.24);
  --glass-label: rgba(216, 180, 254, 0.6);
  --tag-bg: rgba(168, 85, 247, 0.16);
  --tag-text: #E9D5FF;
  --tag-border: rgba(168, 85, 247, 0.32);
  --bio-bar: linear-gradient(180deg, #A855F7, #C084FC);
  --avatar-glow: rgba(168, 85, 247, 0.42);
  --ring: conic-gradient(from 0deg, #7C3AED, #A855F7, #C084FC, #7C3AED);
  --orb-1: #A855F7; --orb-2: #C084FC; --orb-3: #7C3AED;
  --footer-text: rgba(216, 196, 245, 0.35);
  --footer-loading: rgba(216, 196, 245, 0.5);
  --spinner: #C084FC;
  --spinner-track: rgba(216, 196, 245, 0.15);
  --company-link-bg: rgba(168, 85, 247, 0.1);
  --company-link-border: rgba(192, 132, 252, 0.26);
  --company-link-active: rgba(168, 85, 247, 0.18);
}

/* 暖金典雅 · 浅色 */
.card-page[data-style="warm"] {
  --bg-gradient: linear-gradient(160deg, #FBF3E4 0%, #FDF6EC 50%, #FFFDF8 100%);
  --text-strong: #3B2F1E;
  --text-main: rgba(59, 47, 30, 0.85);
  --text-dim: rgba(90, 70, 45, 0.7);
  --text-faint: rgba(120, 95, 60, 0.5);
  --text-label: rgba(120, 95, 60, 0.45);
  --glass-bg: rgba(255, 253, 248, 0.7);
  --glass-bg-active: rgba(193, 154, 107, 0.14);
  --glass-border: rgba(193, 154, 107, 0.3);
  --glass-label: rgba(161, 124, 79, 0.75);
  --tag-bg: rgba(197, 160, 110, 0.15);
  --tag-text: #8B6B3E;
  --tag-border: rgba(197, 160, 110, 0.4);
  --bio-bar: linear-gradient(180deg, #C9A06B, #E0B97D);
  --avatar-glow: rgba(212, 175, 110, 0.4);
  --ring: conic-gradient(from 0deg, #C9A06B, #E0B97D, #F0D9A8, #C9A06B);
  --orb-1: #E0B97D; --orb-2: #C9A06B; --orb-3: #F0D9A8;
  --footer-text: rgba(120, 95, 60, 0.4);
  --footer-loading: rgba(120, 95, 60, 0.5);
  --spinner: #C9A06B;
  --spinner-track: rgba(120, 95, 60, 0.12);
  --company-link-bg: rgba(255, 253, 248, 0.6);
  --company-link-border: rgba(193, 154, 107, 0.35);
  --company-link-active: rgba(193, 154, 107, 0.14);
}

/* 活力橙 · 真橙暖调 */
.card-page[data-style="sunset"] {
  --bg-gradient: linear-gradient(160deg, #FFB347 0%, #FF8A3D 50%, #FF6B35 100%);
  --text-strong: #FFFFFF;
  --text-main: rgba(255, 255, 255, 0.95);
  --text-dim: rgba(255, 255, 255, 0.82);
  --text-faint: rgba(255, 255, 255, 0.62);
  --text-label: rgba(255, 255, 255, 0.6);
  --glass-bg: rgba(255, 255, 255, 0.2);
  --glass-bg-active: rgba(255, 255, 255, 0.3);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-label: rgba(255, 255, 255, 0.7);
  --tag-bg: rgba(255, 255, 255, 0.28);
  --tag-text: #FFFFFF;
  --tag-border: rgba(255, 255, 255, 0.55);
  --bio-bar: linear-gradient(180deg, #FFD66B, #FF8A3D);
  --avatar-glow: rgba(255, 255, 255, 0.55);
  --ring: conic-gradient(from 0deg, #FFD66B, #FF8A3D, #FF5E3A, #FFD66B);
  --orb-1: #FFD66B; --orb-2: #FF8A3D; --orb-3: #FF5E3A;
  --footer-text: rgba(255, 255, 255, 0.7);
  --footer-loading: rgba(255, 255, 255, 0.85);
  --spinner: #FFFFFF;
  --spinner-track: rgba(255, 255, 255, 0.28);
  --company-link-bg: rgba(255, 255, 255, 0.22);
  --company-link-border: rgba(255, 255, 255, 0.42);
  --company-link-active: rgba(255, 255, 255, 0.32);
}

/* 中国红 · 红金中国风 */
.card-page[data-style="china"] {
  --bg-gradient: linear-gradient(160deg, #7A0C12 0%, #A4131B 50%, #C62828 100%);
  --text-strong: #FFFFFF;
  --text-main: rgba(255, 245, 240, 0.92);
  --text-dim: rgba(254, 226, 214, 0.78);
  --text-faint: rgba(250, 210, 195, 0.55);
  --text-label: rgba(245, 200, 170, 0.5);
  --glass-bg: rgba(255, 245, 230, 0.1);
  --glass-bg-active: rgba(245, 197, 24, 0.16);
  --glass-border: rgba(245, 197, 24, 0.28);
  --glass-label: rgba(245, 197, 24, 0.7);
  --tag-bg: rgba(245, 197, 24, 0.18);
  --tag-text: #FDE68A;
  --tag-border: rgba(245, 197, 24, 0.4);
  --bio-bar: linear-gradient(180deg, #F5C518, #E6B450);
  --avatar-glow: rgba(245, 197, 24, 0.45);
  --ring: conic-gradient(from 0deg, #F5C518, #E63946, #C0392B, #F5C518);
  --orb-1: #F5C518; --orb-2: #E63946; --orb-3: #C62828;
  --footer-text: rgba(254, 226, 214, 0.4);
  --footer-loading: rgba(254, 226, 214, 0.6);
  --spinner: #F5C518;
  --spinner-track: rgba(254, 226, 214, 0.18);
  --company-link-bg: rgba(255, 245, 230, 0.12);
  --company-link-border: rgba(245, 197, 24, 0.3);
  --company-link-active: rgba(245, 197, 24, 0.2);
}

/* 莫兰迪 · 低饱和高级灰 */
.card-page[data-style="morandi"] {
  --bg-gradient: linear-gradient(160deg, #E8E4DD 0%, #EDE9E3 50%, #F2EFEA 100%);
  --text-strong: #3F3B35;
  --text-main: rgba(63, 59, 53, 0.85);
  --text-dim: rgba(88, 84, 76, 0.72);
  --text-faint: rgba(110, 105, 96, 0.55);
  --text-label: rgba(120, 115, 105, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-bg-active: rgba(163, 168, 155, 0.16);
  --glass-border: rgba(140, 139, 131, 0.28);
  --glass-label: rgba(110, 107, 99, 0.7);
  --tag-bg: rgba(163, 168, 155, 0.2);
  --tag-text: #6E6B63;
  --tag-border: rgba(140, 139, 131, 0.4);
  --bio-bar: linear-gradient(180deg, #A3A89B, #B0A8A0);
  --avatar-glow: rgba(163, 168, 155, 0.45);
  --ring: conic-gradient(from 0deg, #A3A89B, #B0A8A0, #C4B7A6, #A3A89B);
  --orb-1: #B0A8A0; --orb-2: #A3A89B; --orb-3: #C4B7A6;
  --footer-text: rgba(110, 105, 96, 0.45);
  --footer-loading: rgba(110, 105, 96, 0.6);
  --spinner: #8C8B83;
  --spinner-track: rgba(110, 105, 96, 0.15);
  --company-link-bg: rgba(255, 255, 255, 0.5);
  --company-link-border: rgba(140, 139, 131, 0.3);
  --company-link-active: rgba(163, 168, 155, 0.16);
}

/* 樱粉 · 柔粉浅色 */
.card-page[data-style="sakura"] {
  --bg-gradient: linear-gradient(160deg, #FFE3EC 0%, #FFD3E0 50%, #FFF0F4 100%);
  --text-strong: #5C2A3E;
  --text-main: rgba(92, 42, 62, 0.85);
  --text-dim: rgba(120, 70, 92, 0.7);
  --text-faint: rgba(140, 95, 115, 0.55);
  --text-label: rgba(150, 105, 125, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-bg-active: rgba(244, 114, 182, 0.14);
  --glass-border: rgba(244, 114, 182, 0.3);
  --glass-label: rgba(219, 39, 119, 0.7);
  --tag-bg: rgba(244, 114, 182, 0.16);
  --tag-text: #BE185D;
  --tag-border: rgba(244, 114, 182, 0.4);
  --bio-bar: linear-gradient(180deg, #F472B6, #FBCFE8);
  --avatar-glow: rgba(244, 114, 182, 0.4);
  --ring: conic-gradient(from 0deg, #F9A8D4, #F472B6, #EC4899, #F9A8D4);
  --orb-1: #F9A8D4; --orb-2: #F472B6; --orb-3: #EC4899;
  --footer-text: rgba(120, 70, 92, 0.45);
  --footer-loading: rgba(120, 70, 92, 0.6);
  --spinner: #EC4899;
  --spinner-track: rgba(120, 70, 92, 0.15);
  --company-link-bg: rgba(255, 255, 255, 0.55);
  --company-link-border: rgba(244, 114, 182, 0.3);
  --company-link-active: rgba(244, 114, 182, 0.14);
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
}

/* ========== Loading ========== */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-text {
  font-size: 14px;
  color: var(--color-text-light);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== 底部信息 ========== */
.footer {
  text-align: center;
  padding: 32px 20px 40px;
  font-size: 12px;
  color: var(--color-text-light);
}

.footer-company {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

/* ========== 动画 ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.4s ease-out;
}

.fade-in-delay-1 { animation-delay: 0.1s; animation-fill-mode: both; }
.fade-in-delay-2 { animation-delay: 0.2s; animation-fill-mode: both; }
.fade-in-delay-3 { animation-delay: 0.3s; animation-fill-mode: both; }

/* ========== wx-open-launch-weapp 样式 ========== */
.launch-weapp-btn {
  width: 100%;
}

.launch-weapp-btn .btn-inner {
  width: 100%;
  background: var(--gradient-primary);
  color: white;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
}

/* ========== 子页面（板块项目详情） ========== */
.detail-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(8px);
}

.detail-back {
  font-size: 15px;
  color: var(--color-primary);
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
}

.detail-banner {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--gradient-primary);
  position: relative;
}

.detail-banner.has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.35) 100%);
}

.detail-banner--default {
  background: var(--gradient-primary);
}

.detail-section-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--color-primary);
  background: rgba(79, 70, 229, 0.08);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.detail-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.detail-summary {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  white-space: pre-line;
}

.detail-features {
  margin-top: 16px;
}

.feature-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--color-border);
}

.feature-item:first-child {
  border-top: none;
}

.feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-primary);
  margin-top: 7px;
  flex-shrink: 0;
}

.feature-body {
  flex: 1;
}

.feature-title {
  font-size: 15px;
  font-weight: 600;
}

.feature-desc {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 2px;
  line-height: 1.6;
}
