/* ====================================================
   视觉升级补丁 — 叠加在 style.css / dyy.css 之上
   ==================================================== */

/* ===== 全局变量扩展 ===== */
:root {
  --grad-primary: linear-gradient(135deg, #fe2c55 0%, #ff6b35 100%);
  --grad-cool:    linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --grad-teal:    linear-gradient(135deg, #0f9b8e 0%, #25f4ee 100%);
  --grad-gold:    linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  --grad-dark:    linear-gradient(135deg, #0a0a1a 0%, #1a1030 60%, #0d1a2d 100%);
  --card-shine: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 50%);
}

/* ===== Section 标题渐变文字 ===== */
.section-title {
  background: linear-gradient(135deg, #111 0%, #444 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 区块装饰背景纹理 ===== */
.section:not(.bg-gray):not(.cta) {
  position: relative;
  background: #ffffff;
}
.section:not(.bg-gray):not(.cta)::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 5% 20%, rgba(254,44,85,0.04) 0%, transparent 40%),
    radial-gradient(circle at 95% 80%, rgba(37,244,238,0.04) 0%, transparent 40%);
}

.bg-gray {
  background: linear-gradient(180deg, #fef6f7 0%, #fdefef 100%) !important;
}

/* ===== 服务卡片升级 ===== */
.dyy-service-card,
.sub-card,
.service-card {
  position: relative; overflow: hidden;
}
.dyy-service-card::before,
.sub-card::before,
.service-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: var(--card-shine);
  opacity: 0; transition: opacity 0.3s;
}
.dyy-service-card:hover::before,
.sub-card:hover::before,
.service-card:hover::before { opacity: 1; }

.dyy-service-card:hover,
.sub-card:hover,
.service-card:hover {
  background: var(--grad-primary) !important;
  border-color: transparent !important;
  box-shadow: 0 12px 40px rgba(254,44,85,0.35), 0 2px 8px rgba(0,0,0,0.08) !important;
  transform: translateY(-4px);
}
.dyy-service-card:hover h4,
.dyy-service-card:hover p,
.sub-card:hover h4,
.sub-card:hover p,
.service-card:hover h4,
.service-card:hover p {
  color: #fff !important;
}
.dyy-service-card:hover .sub-card-icon,
.dyy-service-card:hover .dyy-service-icon,
.sub-card:hover .sub-card-icon,
.service-card:hover .sub-card-icon {
  color: #fff !important;
  background: rgba(255,255,255,0.2) !important;
  box-shadow: none !important;
}

/* ===== 服务图标升级 ===== */
.dyy-service-icon {
  background: linear-gradient(135deg, #fff5f7 0%, #ffe8f0 100%) !important;
  box-shadow: 0 4px 12px rgba(254,44,85,0.12);
}

/* ===== 案例增长数字 ===== */
.case-growth {
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Stats 数字 ===== */
.stat-num {
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.about-stat-num {
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Banner 装饰圆圈 ===== */
.banner::after,
.dyy-banner::after,
.sub-banner::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(254,44,85,0.08) 0%, transparent 70%);
  right: -100px; bottom: -150px; pointer-events: none;
}
.banner::before,
.dyy-banner::before,
.sub-banner::before {
  background:
    radial-gradient(circle at 20% 50%, rgba(254,44,85,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(37,244,238,0.08) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") !important;
}

/* ===== 数字统计块 ===== */
.dyy-stats .stat-item,
.sub-stats .stat-item {
  position: relative; padding-left: 12px;
}
.dyy-stats .stat-item::before,
.sub-stats .stat-item::before {
  content: '';
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; border-radius: 3px;
  background: var(--grad-primary);
}

/* ===== 流程步骤升级 ===== */
.dyy-process-item.active {
  background: var(--grad-primary) !important;
}
.dyy-process-item.active .dyy-step-num {
  color: rgba(255,255,255,0.4) !important;
}

/* ===== 认证卡片 ===== */
.cert-card {
  background: linear-gradient(145deg, #fff 0%, #fff5f6 100%);
  border: 1.5px solid transparent;
  background-clip: padding-box;
  transition: all 0.3s;
}
.cert-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 32px rgba(254,44,85,0.12);
  border-color: rgba(254,44,85,0.2);
}

/* ===== 团队卡片升级 ===== */
.team-card {
  background: linear-gradient(145deg, #fff 0%, #fff5f6 100%);
}
.team-card:hover {
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(102,126,234,0.2);
  background: linear-gradient(#fff,#fff) padding-box,
              var(--grad-cool) border-box;
  border: 1.5px solid transparent;
}

/* ===== 对比表格升级 ===== */
.compare-header .hancong {
  background: var(--grad-primary) !important;
}
.compare-row:nth-child(even) { background: #fafbff; }

/* ===== CTA 区域升级 ===== */
.cta {
  background:
    linear-gradient(135deg, rgba(254,44,85,0.88) 0%, rgba(255,107,53,0.82) 100%),
    url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=1400&h=400&fit=crop&q=80') center/cover no-repeat !important;
  position: relative; overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 50%, rgba(0,0,0,0.1) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.03'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Ccircle cx='40' cy='40' r='10'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.cta::after {
  content: '';
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  right: -80px; top: -120px; pointer-events: none;
}
.cta .container { position: relative; z-index: 1; }

/* ===== Footer 升级 ===== */
.footer {
  background: linear-gradient(180deg, #08080f 0%, #0f0f1e 100%) !important;
  border-top: 1px solid rgba(254,44,85,0.2);
}
.footer-phone {
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 按钮升级 ===== */
.btn-primary {
  background: var(--grad-primary) !important;
  box-shadow: 0 4px 15px rgba(254,44,85,0.3);
}
/* CTA 区域内的按钮保持白底 */
.cta .btn-primary {
  background: #fff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  color: var(--primary) !important;
}
.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(254,44,85,0.45) !important;
  transform: translateY(-2px);
}
.btn-outline:hover {
  background: var(--grad-primary) !important;
  border-color: transparent;
}

/* ===== 营销卡片升级 ===== */
.marketing-card {
  background: linear-gradient(145deg, #fff 0%, #fff5f6 100%);
}
.marketing-card:hover {
  background: linear-gradient(#fff,#fff) padding-box,
              var(--grad-primary) border-box;
  border: 1.5px solid transparent;
}
.marketing-num {
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 1 !important;
}

/* ===== 变现卡片 ===== */
.monetize-card {
  background: linear-gradient(145deg, #fff 0%, #fff5f6 100%);
  border: 1.5px solid rgba(254,44,85,0.10);
}
.monetize-card {
  transition: background 0.32s ease, color 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease, transform 0.32s ease;
}
.monetize-card:hover {
  background: var(--grad-primary) !important;
  box-shadow: 0 16px 48px rgba(254,44,85,0.25) !important;
  color: #fff;
  border-color: transparent;
}
.monetize-card li {
  background: rgba(0,0,0,0.03) !important;
  border-radius: 6px;
  transition: background 0.32s ease;
}
.monetize-card:hover li { background: rgba(255,255,255,0.18) !important; }

/* ===== 案例卡片升级 ===== */
.case-card, .case-item {
  background: linear-gradient(145deg, #fff 0%, #fff5f6 100%);
  overflow: hidden;
}
.case-item:hover {
  box-shadow: 0 16px 48px rgba(254,44,85,0.12);
  border-color: rgba(254,44,85,0.2);
}
/* 品类背景图 */
.case-thumb {
  height: 140px;
  background-size: cover; background-position: center;
  border-radius: 8px; margin-bottom: 14px;
  position: relative; overflow: hidden;
}
.case-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.28) 100%);
}
.case-item:hover .case-thumb { transform: scale(1.04); transition: transform 0.4s ease; }

/* ===== 流程步骤连接线升级 ===== */
.process-steps::before {
  background: linear-gradient(90deg, var(--primary), #667eea) !important;
  height: 2px !important;
  opacity: 0.3;
}
.process-step.active .step-circle,
.process-step:hover .step-circle {
  background: var(--grad-primary) !important;
  border-color: transparent !important;
  box-shadow: 0 0 0 6px rgba(254,44,85,0.12), 0 4px 12px rgba(254,44,85,0.3) !important;
}

/* ===== 新闻卡片升级 ===== */
.news-thumb {
  background: linear-gradient(135deg, #667eea22 0%, #fe2c5522 100%) !important;
}
.news-card:hover { border-color: rgba(254,44,85,0.2); }

/* ===== Hero 区域 ===== */
.page-hero {
  background: var(--grad-dark) !important;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(254,44,85,0.15), transparent 60%);
  pointer-events: none;
}
.page-hero h1, .page-hero p { position: relative; z-index: 1; }

/* ===== 优势卡片 ===== */
.advantage-card {
  background: linear-gradient(145deg, #fff 0%, #fafbff 100%);
  border-left: 3px solid transparent;
  border-image: var(--grad-primary) 1;
  border-image-slice: 1;
  transition: all 0.3s;
}
.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(254,44,85,0.1);
}
.adv-num {
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 1 !important;
}

/* ===== Sub Banner 数字分隔线 ===== */
.sub-stats .stat-item:not(:last-child)::after {
  content: '';
  position: absolute; right: -20px; top: 10%; bottom: 10%;
  width: 1px; background: rgba(255,255,255,0.15);
}
.sub-stats { gap: 48px; }

/* ===== 问题诊断卡片 ===== */
.problem-icon { display: block; }

/* ===== Logo 升级 ===== */
.logo a, .logo {
  background: var(--grad-primary) !important;
  -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

/* ===== 热线电话 ===== */
.hotline {
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 分隔装饰线 ===== */
.section-title::after {
  content: '';
  display: block; width: 48px; height: 3px;
  background: var(--grad-primary);
  border-radius: 3px; margin: 12px auto 0;
}

/* ===== 卡片悬停光晕 ===== */
.service-card,
.dyy-service-card,
.strategy-card,
.team-card,
.case-item,
.sub-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease !important;
}

/* ===== 滚动进度顶部条 ===== */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad-primary);
  z-index: 9999; transition: width 0.1s linear;
}

/* =====================================================
   平台覆盖条
   ===================================================== */
.plat-strip {
  background: #fff;
  border-top: 2px solid rgba(254,44,85,0.12);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.plat-strip-inner {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.plat-strip-label {
  font-size: 12px; color: var(--text-muted);
  white-space: nowrap; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; flex-shrink: 0;
}
.plat-divider {
  width: 1px; height: 18px; background: var(--border); flex-shrink: 0;
}
.plat-logos {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.plat-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 14px; border-radius: 20px;
  background: #f8f8f8; border: 1.5px solid var(--border);
  font-size: 13px; font-weight: 600; color: #444;
  transition: all 0.25s; cursor: default; white-space: nowrap;
}
.plat-badge:hover {
  border-color: var(--primary); color: var(--primary);
  background: #fff0f3; transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(254,44,85,0.12);
}

/* =====================================================
   数据成就条
   ===================================================== */
.data-stats {
  background: linear-gradient(135deg, #0a0a18 0%, #1a0620 50%, #0a1018 100%);
  padding: 52px 0; position: relative; overflow: hidden;
}
.data-stats::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(254,44,85,0.16) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 50%, rgba(37,244,238,0.09) 0%, transparent 50%);
}
.data-stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  position: relative; z-index: 1;
}
.data-stat {
  text-align: center; padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.data-stat:last-child { border-right: none; }
.data-num {
  font-size: 46px; font-weight: 900; line-height: 1.1;
  color: #fff; margin-bottom: 10px;
}
.data-num em {
  font-style: normal; font-size: 20px;
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.data-label {
  font-size: 13px; color: rgba(255,255,255,0.50); font-weight: 500;
}

/* =====================================================
   客户见证
   ===================================================== */
.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testi-card {
  background: #fff; border-radius: var(--radius);
  padding: 32px 28px; border: 1.5px solid var(--border);
  box-shadow: var(--shadow); transition: var(--transition);
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
}
.testi-card::before {
  content: '\201C';
  position: absolute; top: 12px; right: 20px;
  font-size: 80px; line-height: 1;
  color: var(--primary); opacity: 0.07;
  font-family: Georgia, serif; font-weight: 900;
  pointer-events: none;
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.testi-stars { color: #ffb800; font-size: 16px; letter-spacing: 4px; }
.testi-card > p {
  font-size: 14px; color: #555; line-height: 1.85; flex: 1;
}
.testi-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.testi-author strong { display: block; font-size: 14px; font-weight: 700; color: var(--dark); }
.testi-author span { font-size: 12px; color: var(--text-muted); margin-top: 2px; display: block; }

/* =====================================================
   响应式补充
   ===================================================== */
@media (max-width: 1024px) {
  .data-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .data-stat:nth-child(3) { border-right: none; }
  .data-stat:nth-child(4),
  .data-stat:nth-child(5) { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 28px; margin-top: 8px; }
}
@media (max-width: 768px) {
  .plat-strip-label { width: 100%; text-align: center; }
  .plat-strip-inner { justify-content: center; }
  .data-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .data-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 20px 16px; }
  .data-stat:last-child { border-bottom: none; }
  .testi-grid { grid-template-columns: 1fr; }
}
