/* ==========================================================================
   jichangvpn.help - 次世代科技资讯与评测门户 CSS 设计系统
   风格规范：现代科技媒体风 (Tailwind-inspired Modern Design System)
   特性：多版式多样化、零千篇一律、高信息密度、全相对路径兼容、响应式优雅适配
   ========================================================================== */

:root {
  /* 品牌核心主色与渐变 */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-border: #c7d2fe;
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --champion-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);

  /* 功能语义色彩 */
  --success: #10b981;
  --success-light: #ecfdf5;
  --success-border: #a7f3d0;
  
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --warning-border: #fde68a;
  
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --danger-border: #fecaca;

  --info: #0284c7;
  --info-light: #f0f9ff;
  --info-border: #bae6fd;

  --purple: #8b5cf6;
  --purple-light: #f5f3ff;

  /* 中性 Slate 层次灰阶 */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  --text-main: var(--slate-900);
  --text-secondary: var(--slate-700);
  --text-muted: var(--slate-500);

  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --border: var(--slate-200);

  /* 圆角与阴影规范 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.25);

  --max-width: 1200px;
  --article-width: 860px;
}

/* ==========================================================================
   基础重置与排版
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Header 导航栏 (现代化毛玻璃特效)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-logo:hover {
  color: var(--primary);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
  border-radius: 9px;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-logo:hover .logo-mark {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.38);
}

.logo-mark svg {
  display: block;
}

.logo-text {
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.logo-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate-600);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
  background: rgba(79, 70, 229, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-header {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--slate-700);
}

/* ==========================================================================
   按钮体系
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: #fff !important;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-gradient {
  background: var(--primary-gradient);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.btn-outline {
  background: #fff;
  border-color: var(--slate-300);
  color: var(--slate-700);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 12px 26px;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   多样化非重复卡片系统 (Varied Card Architecture)
   ========================================================================== */

/* 1. 榜首王者卡 (Champion Spotlight Card) */
.champion-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 2px solid #fbbf24;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 12px 30px -5px rgba(245, 158, 11, 0.15);
  margin-bottom: 30px;
  overflow: hidden;
}

.champion-card::before {
  content: "🏆 年度综合总榜冠军 · 编辑部最高推荐";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 20px;
  letter-spacing: 0.05em;
  text-align: center;
}

.champion-inner {
  margin-top: 15px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
}

/* 2. 专题场景卡 (Scenario Entrance Cards - 6 种多彩差异化风格) */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.scenario-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.scenario-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.scenario-card.theme-budget { border-top: 4px solid #f59e0b; }
.scenario-card.theme-premium { border-top: 4px solid #10b981; }
.scenario-card.theme-beginner { border-top: 4px solid #3b82f6; }
.scenario-card.theme-stable { border-top: 4px solid #8b5cf6; }
.scenario-card.theme-ai { border-top: 4px solid #06b6d4; }
.scenario-card.theme-streaming { border-top: 4px solid #ef4444; }

.scenario-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.scenario-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.theme-budget .scenario-icon { background: var(--warning-light); }
.theme-premium .scenario-icon { background: var(--success-light); }
.theme-beginner .scenario-icon { background: var(--primary-light); }
.theme-stable .scenario-icon { background: var(--purple-light); }
.theme-ai .scenario-icon { background: #ecfeff; }
.theme-streaming .scenario-icon { background: var(--danger-light); }

/* 3. 评测横向卡 (Horizontal Tech Review Card) */
.review-media-card {
  display: grid;
  grid-template-columns: 280px 1fr 200px;
  gap: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  align-items: center;
  transition: all 0.2s ease;
  margin-bottom: 20px;
}

.review-media-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* 4. 极简参数对比卡 (Compact Spec Card) */
.spec-mini-card {
  padding: 18px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   评分指示仪表与微型度量条 (Telemetry Score Meters)
   ========================================================================== */
.score-badge-circle {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  border: 2px solid var(--primary);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
}

.score-badge-circle small {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--slate-500);
}

.meter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.meter-label {
  width: 60px;
  color: var(--text-muted);
}

.meter-track {
  flex: 1;
  height: 6px;
  background: var(--slate-200);
  border-radius: 3px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--primary-gradient);
}

.meter-val {
  width: 32px;
  font-weight: 700;
  color: var(--slate-800);
  text-align: right;
}

/* ==========================================================================
   徽章与标签体系 (Badge System)
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.badge-iepl { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.badge-iplc { background: #ede9fe; color: #6d28d9; border: 1px solid #ddd6fe; }
.badge-bgp { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge-relay { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }

.badge-pill-rank {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.rank-1 { background: #fef3c7; color: #b45309; border: 2px solid #f59e0b; }
.rank-2 { background: #f1f5f9; color: #475569; border: 2px solid #94a3b8; }
.rank-3 { background: #ffedd5; color: #c2410c; border: 2px solid #fb923c; }
.rank-norm { background: #f8fafc; color: #64748b; border: 1px solid #cbd5e1; }

/* ==========================================================================
   优缺点对比双栏卡 (Pros & Cons Grid)
   ========================================================================== */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.pros-box {
  background: var(--success-light);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.cons-box {
  background: var(--danger-light);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.pros-box h4 { color: #166534; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.cons-box h4 { color: #991b1b; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }

.pros-box ul, .cons-box ul {
  padding-left: 20px;
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ==========================================================================
   优惠券与价格卡 (Coupon & Pricing UI)
   ========================================================================== */
.coupon-box {
  display: inline-flex;
  align-items: center;
  background: #fef3c7;
  border: 1px dashed #d97706;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.85rem;
  color: #92400e;
  gap: 8px;
  cursor: pointer;
}

.coupon-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  color: #b45309;
}

/* ==========================================================================
   排行榜表格系统 (Next-Gen Table)
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin: 24px 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.data-table th {
  background: var(--slate-50);
  color: var(--slate-600);
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid var(--slate-100);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: #f8fafc;
}

/* ==========================================================================
   文章正文与排版 (Typography / Prose)
   ========================================================================== */
.article-container {
  max-width: var(--article-width);
  margin: 0 auto;
}

.prose {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--slate-800);
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--slate-200);
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.prose ul, .prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.callout {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin: 20px 0;
  font-size: 0.95rem;
  line-height: 1.7;
  border-left: 4px solid transparent;
}

.callout-info {
  background: var(--info-light);
  border-left-color: var(--info);
  color: #0369a1;
}

.callout-success {
  background: var(--success-light);
  border-left-color: var(--success);
  color: #15803d;
}

.callout-warning {
  background: var(--warning-light);
  border-left-color: var(--warning);
  color: #b45309;
}

/* 面包屑导航 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--slate-400);
}

.breadcrumb-current {
  color: var(--slate-800);
  font-weight: 500;
}

/* ==========================================================================
   Footer 底部版权
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 50px 0 30px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4,
.footer-column h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul,
.footer-column ul,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li,
.footer-column li,
.footer-links li {
  margin-bottom: 10px;
}

.footer-col a,
.footer-column a,
.footer-links a {
  color: var(--slate-400);
  transition: color 0.15s ease;
}

.footer-col a:hover,
.footer-column a:hover,
.footer-links a:hover {
  color: #fff;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 800;
}

.footer-brand p {
  color: var(--slate-400);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--slate-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

/* ==========================================================================
   响应式媒体查询
   ========================================================================== */
@media (max-width: 992px) {
  .champion-inner {
    grid-template-columns: 1fr;
  }
  .review-media-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .pros-cons-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ==========================================================================
   文章与教程上下文快速跳转导航 (Prev / Next Article Navigation)
   ========================================================================== */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0 30px;
}

.article-nav-card {
  display: flex;
  flex-direction: column;
  padding: 18px 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.article-nav-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.article-nav-card.next {
  text-align: right;
  align-items: flex-end;
}

.article-nav-card.prev {
  text-align: left;
  align-items: flex-start;
}

.article-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 6px;
}

.article-nav-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.article-nav-card:hover .article-nav-title {
  color: var(--primary);
}

.article-nav-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

@media (max-width: 640px) {
  .article-nav {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .article-nav-card.next {
    text-align: left;
    align-items: flex-start;
  }
}

/* ==========================================================================
   联络我们按钮与专业交互弹窗 (Contact Header Button & Modal)
   ========================================================================== */
.btn-header-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  text-decoration: none;
}

.btn-header-contact:hover {
  background: var(--slate-50);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.btn-header-contact svg {
  color: var(--primary);
}

/* 弹窗遮罩 */
.contact-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 16px;
}

.contact-modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* 弹窗主体卡片 */
.contact-modal-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
  max-width: 580px;
  width: 100%;
  padding: 32px 30px;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal-overlay.active .contact-modal-card {
  transform: scale(1) translateY(0);
}

.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--slate-100);
  color: var(--slate-500);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.contact-modal-close:hover {
  background: var(--slate-200);
  color: var(--slate-900);
}

.contact-modal-header {
  margin-bottom: 22px;
}

.contact-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.contact-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 6px;
  line-height: 1.3;
}

.contact-modal-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.contact-channels-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-channel-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.contact-channel-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.contact-channel-card.gmail-channel {
  border-color: #fecaca;
  background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.contact-channel-card.tg-channel {
  border-color: #bae6fd;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.channel-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.channel-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon-wrap.gmail-icon {
  background: #ef4444;
  color: #ffffff;
}

.channel-icon-wrap.tg-icon {
  background: #0284c7;
  color: #ffffff;
}

.channel-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-500);
}

.channel-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-900);
  font-family: monospace, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  word-break: break-all;
}

.channel-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 0 14px 0;
  line-height: 1.5;
}

.channel-actions {
  display: flex;
  gap: 10px;
}

.btn-channel {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-channel-primary {
  background: #ef4444;
  color: #ffffff !important;
}

.btn-channel-primary:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.btn-channel-tg {
  background: #0284c7;
  color: #ffffff !important;
}

.btn-channel-tg:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.btn-channel-copy {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--slate-700);
}

.btn-channel-copy:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
}

.btn-channel-copy.copied {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

.contact-modal-footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block !important;
  }
  .btn-header-contact span {
    display: inline-block;
  }
  .contact-modal-card {
    padding: 24px 20px;
  }
  .channel-actions {
    flex-direction: column;
  }
}


