/* ============================================
   塑明星 (SUMINGXING) 官网 - 全局样式表
   Design Tokens & Global Styles
   ============================================ */

/* Tailwind CSS via CDN - 补充自定义样式 */

:root {
  /* 颜色系统 */
  --primary-dark: #002B14;
  --primary: #009A44;
  --primary-light: #F4F9F6;
  --text-primary: #333333;
  --text-secondary: #666666;
  --white: #FFFFFF;

  /* 字体 */
  --font-family: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --letter-spacing: 0.05em;

  /* 过渡 */
  --transition-base: all 0.3s ease-in-out;
  --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局重置 */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  letter-spacing: var(--letter-spacing);
  color: var(--text-primary);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   导航栏 (Header)
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-base);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(0, 43, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.site-header .nav-link {
  position: relative;
  color: var(--white);
  transition: var(--transition-base);
  cursor: pointer;
}

.site-header .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease-in-out;
  transform: translateX(-50%);
}

.site-header .nav-link:hover::after {
  width: 100%;
}

/* 搜索栏展开动画 */
.search-expand {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   首页 Banner 轮播
   ============================================ */
.hero-slider .swiper-slide {
  position: relative;
}

.hero-slider .overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,43,20,0.6) 100%);
  z-index: 1;
}

.hero-slider .swiper-pagination-custom {
  display: flex;
  justify-content: center;
  gap: 8px;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.hero-slider .swiper-pagination-custom .swiper-pagination-bullet {
  width: 8px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.4s ease-in-out, background 0.4s ease-in-out;
  opacity: 1;
  cursor: pointer;
}

.hero-slider .swiper-pagination-custom .swiper-pagination-bullet-active {
  width: 24px;
  background: var(--primary);
}

/* ============================================
   品牌区域 - 全国地图动态特效
   ============================================ */

/* 地图容器热力渐变（加强版 - 位置匹配 D3 投影坐标） */
.map-heat-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 28% 30% at 60% 44%, rgba(0,154,68,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 25% 28% at 66% 56%, rgba(0,154,68,0.16) 0%, transparent 70%),
    radial-gradient(ellipse 30% 28% at 58% 68%, rgba(0,154,68,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 22% 22% at 58% 56%, rgba(0,154,68,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 25% 25% at 50% 58%, rgba(0,154,68,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 28% 28% at 62% 44%, rgba(0,154,68,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 22% 22% at 64% 64%, rgba(0,154,68,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 22% 22% at 52% 60%, rgba(0,154,68,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 18% 18% at 55% 50%, rgba(0,154,68,0.10) 0%, transparent 50%);
  z-index: 1;
  animation: heatPulse 4s ease-in-out infinite alternate;
}

@keyframes heatPulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* 地图容器发光边框 */
.map-container-glow {
  box-shadow: inset 0 0 60px rgba(0, 154, 68, 0.08), 0 0 50px rgba(0, 154, 68, 0.06), 0 0 100px rgba(0, 154, 68, 0.03);
}

/* 移动端地图最小高度 */
@media (max-width: 639px) {
  .map-container-glow {
    min-height: 260px;
  }
}

/* 门店密度热区 - 流动流光 */
.map-sweep {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: conic-gradient(from 0deg at 50% 50%,
    transparent 0deg,
    rgba(0, 154, 68, 0.03) 60deg,
    transparent 120deg,
    rgba(0, 154, 68, 0.02) 180deg,
    transparent 240deg,
    rgba(0, 154, 68, 0.03) 300deg,
    transparent 360deg
  );
  z-index: 0;
  animation: sweepRotate 12s linear infinite;
}

@keyframes sweepRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================
   品牌故事页 - 卡片特效
   ============================================ */

/* 数字徽章呼吸光晕 */
.value-badge {
  position: relative;
}
.value-badge::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: inherit;
  opacity: 0;
  animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.15); }
}

/* ============================================
   品牌故事页 - 动态叙事特效
   ============================================ */

/* 故事时间线 - 竖线生长（左对齐） */
.story-line-track {
  position: relative;
}
.story-line-track::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1rem;
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, #009A44, rgba(0, 154, 68, 0.1));
  transition: height 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 1024px) {
  .story-line-track::before {
    left: 1.5rem;
  }
}
.story-line-track.visible::before {
  height: 100%;
}

/* 时间线节点 */
.story-node {
  position: relative;
  padding-left: 1.5rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.story-node.visible {
  opacity: 1;
  transform: translateY(0);
}
.story-node:nth-child(1) { transition-delay: 0.1s; }
.story-node:nth-child(2) { transition-delay: 0.35s; }
.story-node:nth-child(3) { transition-delay: 0.6s; }

/* 节点圆点标记 */
.story-node::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 8px;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--primary), 0 0 20px rgba(0, 154, 68, 0.3);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 1024px) {
  .story-node::before {
    left: -1.5rem;
  }
}
.story-node.visible::before {
  opacity: 1;
  transform: scale(1);
}
.story-node:nth-child(1)::before { transition-delay: 0.1s; }
.story-node:nth-child(2)::before { transition-delay: 0.35s; }
.story-node:nth-child(3)::before { transition-delay: 0.6s; }

/* 6000 数字呼吸高光 */
.num-glow {
  display: inline-block;
  animation: numBreathe 2.5s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(0, 154, 68, 0.2);
}
@keyframes numBreathe {
  0%, 100% { transform: scale(1); text-shadow: 0 0 20px rgba(0, 154, 68, 0.2); }
  50% { transform: scale(1.08); text-shadow: 0 0 40px rgba(0, 154, 68, 0.4), 0 0 80px rgba(0, 154, 68, 0.15); }
}

/* 文案扫描高光效果 */
.text-shimmer {
  display: inline-block;
  background: linear-gradient(120deg,
    rgba(0, 154, 68, 0) 0%,
    rgba(0, 154, 68, 0.08) 40%,
    rgba(0, 154, 68, 0.12) 50%,
    rgba(0, 154, 68, 0.08) 60%,
    rgba(0, 154, 68, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmerSweep 4s ease-in-out infinite;
}
@keyframes shimmerSweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 标签弹入 */
.tag-bounce {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tag-bounce.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.tag-bounce:nth-child(1) { transition-delay: 0.1s; }
.tag-bounce:nth-child(2) { transition-delay: 0.2s; }
.tag-bounce:nth-child(3) { transition-delay: 0.3s; }
.tag-bounce:nth-child(4) { transition-delay: 0.4s; }

/* 浮动背景光点 */
.float-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--primary);
  pointer-events: none;
  opacity: 0;
  animation: floatRise 6s ease-in-out infinite;
}
@keyframes floatRise {
  0% { opacity: 0; transform: translateY(100px) scale(0); }
  20% { opacity: 0.12; }
  80% { opacity: 0.08; }
  100% { opacity: 0; transform: translateY(-200px) scale(1); }
}

/* 底部分隔线动画 */
.story-divider {
  position: relative;
  overflow: hidden;
}
.story-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  animation: dividerSweep 3s ease-in-out infinite;
}
@keyframes dividerSweep {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* 数据统计行光晕分隔 */
.stats-glow {
  position: relative;
}
.stats-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 154, 68, 0.5), transparent);
}

/* 品牌价值观卡片悬浮上升效果升级 */
.value-card {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(0, 154, 68, 0.12);
}

/* ============================================
   总部扶持体系
   ============================================ */
.support-card {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.support-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 154, 68, 0.12);
}

.support-card .support-icon {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.support-card:hover .support-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary) !important;
  color: white !important;
}

.support-card:hover .support-icon svg {
  stroke: white;
}

.support-card:hover h3 {
  color: var(--primary);
}

/* ============================================
   通用组件
   ============================================ */

/* 图片容器防变形 */
.img-container {
  overflow: hidden;
  position: relative;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-in-out;
}

.img-container:hover img {
  transform: scale(1.05);
}

/* 卡片通用样式 */
.card-hover {
  transition: var(--transition-base);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 154, 68, 0.15);
}

/* 绿色按钮 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition-base);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 154, 68, 0.3);
}

/* 分页组件 */
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: var(--transition-base);
  font-size: 14px;
}

.pagination a:hover,
.pagination a.active {
  background: var(--primary);
  color: var(--white);
}

/* 面包屑导航 */
.breadcrumb a {
  color: var(--text-secondary);
  transition: var(--transition-base);
}

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

/* FAQ 分类标签 */
.faq-tabs-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.faq-tabs-wrapper::-webkit-scrollbar {
  display: none;
}
.faq-tab {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border: 1.5px solid transparent;
  background: #f0f0f0;
  color: #666;
  user-select: none;
}
.faq-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.faq-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 154, 68, 0.25);
}
@media (max-width: 639px) {
  .faq-tab {
    padding: 6px 14px;
    font-size: 0.8125rem;
  }
}

/* FAQ 自定义 */
.faq-item details > summary {
  list-style: none;
}

.faq-item details > summary::-webkit-details-marker {
  display: none;
}

.faq-item details > summary::-moz-list-bullet {
  display: none;
}

.faq-item details > summary .faq-icon {
  transition: transform 0.3s ease-in-out;
}

.faq-hidden {
  display: none;
}

.faq-item details[open] > summary .faq-icon {
  transform: rotate(45deg);
}

.faq-item details .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0;
}

.faq-item details[open] .faq-answer {
  max-height: 500px;
  opacity: 1;
}

/* ============================================
   动画工具
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 数字跳动 */
.counter-number {
  display: inline-block;
}

/* 产品卡片 */
.product-card {
  transition: var(--transition-base);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 154, 68, 0.12);
}

/* ============================================
   时间轴 - PC 折线图
   ============================================ */
.timeline-wrapper {
  position: relative;
  width: 100%;
  min-height: 600px;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 4px;
  background: var(--primary);
  transform: translateY(-50%);
  border-radius: 2px;
}

.timeline-node {
  position: absolute;
  transform: translateX(-50%);
}

.timeline-node .node-dot {
  width: 16px;
  height: 16px;
  background: var(--primary);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--primary);
}

/* 移动端时间轴 - 纵向 */
@media (max-width: 1024px) {
  .timeline-mobile {
    position: relative;
    padding-left: 30px;
  }

  .timeline-mobile::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
  }

  .timeline-mobile .tl-item {
    position: relative;
    padding-bottom: 40px;
  }

  .timeline-mobile .tl-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--primary);
  }
}

/* ============================================
   公司历程页 - 时间轴增强特效
   ============================================ */

/* PC 折线发光滤镜 */
.polyline-glow {
  filter: drop-shadow(0 0 6px rgba(0, 154, 68, 0.4)) drop-shadow(0 0 12px rgba(0, 154, 68, 0.15));
}

/* 折线绘制动画 - 基于父容器触发 */
.polyline-draw {
  stroke-dasharray: 2200;
  stroke-dashoffset: 2200;
  transition: stroke-dashoffset 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.timeline-wrapper.visible .polyline-draw {
  stroke-dashoffset: 0;
}

/* PC 时间节点淡入 */
.tl-fade-in {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.tl-fade-in.visible {
  opacity: 1;
}

/* 节点圆点脉冲光环 */
.node-dot {
  position: relative;
}
.node-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(0, 154, 68, 0.15);
  animation: tlDotPulse 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes tlDotPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.8); opacity: 0; }
}

/* 时间节点卡片悬浮强化 */
.tl-card {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.tl-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 40px rgba(0, 154, 68, 0.15);
}

/* 卡片顶部绿色装饰条 */
.tl-card-accent {
  position: relative;
  overflow: hidden;
}
.tl-card-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary), rgba(0, 154, 68, 0.3));
}

/* 年份标签发光 */
.tl-year-glow {
  display: inline-block;
  animation: tlYearPulse 3s ease-in-out infinite;
}
@keyframes tlYearPulse {
  0%, 100% { text-shadow: 0 0 10px rgba(0, 154, 68, 0.15); }
  50% { text-shadow: 0 0 20px rgba(0, 154, 68, 0.3), 0 0 40px rgba(0, 154, 68, 0.1); }
}

/* 移动端时间轴节点入场 */
.tl-mobile-enter {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.tl-mobile-enter.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   品牌起源 - 叙事特效
   ============================================ */

/* 起源区装饰线 */
.origin-divider {
  position: relative;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  width: 60%;
  margin: 0 auto;
}

/* 起源区数字/年份高光 */
.origin-highlight {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), #00c853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 获奖标签脉冲 */
.award-badge {
  position: relative;
  overflow: hidden;
}
.award-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.1), transparent 60%);
  animation: awardShine 4s linear infinite;
}
@keyframes awardShine {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 里程碑高亮条 */
.milestone-bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.milestone-bar::before {
  content: '';
  width: 4px;
  height: 1.5em;
  background: var(--primary);
  border-radius: 2px;
  animation: barPulse 1.5s ease-in-out infinite;
}
@keyframes barPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ============================================
   荣誉资质 - 证书图片展示区
   ============================================ */

/* 证书图片网格 */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) {
  .cert-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .cert-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* 证书卡片 */
.cert-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  aspect-ratio: 3 / 4;
}
.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 154, 68, 0.12);
}
.cert-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cert-card:hover img {
  transform: scale(1.06);
}

/* 证书卡片悬浮遮罩 */
.cert-card .cert-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 43, 20, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.cert-card:hover .cert-overlay {
  opacity: 1;
}
.cert-card .cert-overlay span {
  color: #fff;
  font-size: 0.8125rem;
  padding: 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  letter-spacing: 0.05em;
  transform: translateY(8px);
  transition: transform 0.3s ease;
}
.cert-card:hover .cert-overlay span {
  transform: translateY(0);
}

/* 证书占位图（图片加载失败或未上传时显示） */
.cert-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f4f9f6 0%, #e8f5e9 100%);
  border: 2px dashed #c8e6c9;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}
.cert-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}
.cert-placeholder span {
  color: var(--primary);
  font-size: 0.75rem;
  opacity: 0.6;
  line-height: 1.4;
}

/* 证书图片装饰边框（内嵌） */
.cert-card .cert-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 3px solid rgba(0, 154, 68, 0.08);
  border-radius: 12px;
  z-index: 1;
}

/* ============================================
   荣誉资质 - 灯箱 (Lightbox)
   ============================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay .lightbox-image {
  max-width: 88vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.lightbox-overlay.active .lightbox-image {
  transform: scale(1);
}

/* 灯箱计数器 */
.lightbox-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  z-index: 10001;
}

/* 灯箱关闭按钮 */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 10000;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
}

/* 灯箱导航按钮 */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 10000;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-50%) scale(1.08);
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 639px) {
  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ============================================
   帝国 CMS 预留样式
   ============================================ */
.empire-cms-loop {
  /* 用于 [e:loop={...}] 循环标签的容器 */
}

/* 文章内容富文本样式 */
.article-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #4A4A4A;
  font-size: 16px;
  text-align: justify;
}

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-primary);
}

/* ============================================
   侧边栏序号样式
   ============================================ */
.sidebar-rank-1,
.sidebar-rank-2,
.sidebar-rank-3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--primary);
  color: var(--white);
}

.sidebar-rank-other {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: #E5E7EB;
  color: var(--text-secondary);
}
