/* ===================== 首页样式 ===================== */

/* Hero 区域 */
.hero-section {
  padding: 90px 24px 48px;
  position: relative;
  overflow: hidden;
  min-height: 440px;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 600px 300px at 20% 50%, rgba(0,212,255,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 200px at 80% 20%, rgba(124,77,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  top: 56px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}
.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

/* 时间徽章 */
.hero-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.time-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; box-shadow: 0 0 6px var(--accent); }
  50% { opacity: 0.3; box-shadow: none; }
}

/* 主标题 */
.hero-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #fff;
}
.hero-title-highlight {
  background: linear-gradient(90deg, var(--accent), #00aaff, var(--accent));
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 520px;
}

/* 按钮组 */
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  padding: 10px 24px;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
  border: 2px solid #fff;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}
.btn-secondary {
  padding: 10px 24px;
  background: rgba(0,212,255,0.1);
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 16px var(--accent-glow);
}
.btn-icon { font-size: 10px; }

/* 行业快讯 */
.hero-news {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.hero-news::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.news-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 14px;
  color: var(--yellow);
}
.news-icon { font-size: 16px; }
.news-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.news-item:last-child { border-bottom: none; }
.news-item-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.news-item-title {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
  cursor: pointer;
  transition: var(--transition);
  display: block;
}
.news-item-title:hover { color: var(--accent); }
a.news-item-title { text-decoration: none; }
a.news-item-title::after {
  content: ' ↗';
  font-size: 11px;
  color: var(--accent);
  opacity: 0.7;
}
.news-more {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  transition: var(--transition);
}
.news-more:hover { color: var(--accent); }

/* 统计数据区 */
.stats-section {
  padding: 0 24px 48px;
}
.stats-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.stat-card:hover::after { transform: scaleX(1); }
.stat-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.stat-value {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.stat-change {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}
.stat-change.down { color: var(--red); }

/* 微信二维码区域 */
.wechat-section {
  padding: 64px 24px;
  position: relative;
}
.wechat-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}
.wechat-container {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}
.wechat-title {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.wechat-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.qrcode-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.qrcode-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  width: 160px;
  transition: var(--transition);
}
.qrcode-item:hover {
  border-color: var(--green);
  box-shadow: 0 0 16px rgba(0,230,118,0.1);
  transform: translateY(-3px);
}
.qrcode-img {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 8px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.qrcode-img img { width: 100%; height: 100%; object-fit: cover; }
.qrcode-img .qr-placeholder {
  font-size: 11px;
  color: #333;
  text-align: center;
  padding: 8px;
}
.qrcode-name { font-size: 13px; color: var(--text-secondary); }
.qrcode-status {
  font-size: 11px;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.qrcode-status.active { color: var(--green); }
.qrcode-status.full { color: var(--red); }

/* 响应式 */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; }
  .hero-news { max-width: 600px; }
  .stats-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero-section { padding: 80px 16px 32px; }
  .stats-section { padding: 0 16px 32px; }
  .stats-container { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 16px; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; justify-content: center; }
  .wechat-section { padding: 40px 16px; }
}

/* ===== 二维码灯箱 ===== */
.qr-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}
.qr-lightbox.open {
  display: flex;
  animation: qrFadeIn 0.2s ease;
}
@keyframes qrFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.qr-lightbox-inner {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  animation: qrScaleIn 0.2s ease;
}
@keyframes qrScaleIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.qr-lightbox-img {
  width: min(80vw, 320px);
  height: min(80vw, 320px);
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  display: block;
  /* 禁止 PC 拖拽，但保留手机长按保存 */
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: default; /* 允许手机长按菜单 */
}
.qr-lightbox-tip {
  font-size: 12px;
  color: var(--text-muted);
}
.qr-lightbox-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition);
}
.qr-lightbox-close:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* 二维码卡片鼠标样式 */
.qrcode-item { cursor: pointer; }
.qrcode-img img { pointer-events: none; }
