/* =========================================================
   晟坤泰官网 · 视觉增强层 enhance.css
   目标：在不改动原 styles.css（含已修复的移动端白条）的前提下，
        提升首屏冲击力、卡片质感、按钮精致度、排版呼吸感。
   策略：全部为增量覆盖，可整段删除回退。
   ========================================================= */

/* ---------- 1. 首屏 Hero：径向光晕 + 细腻层次 ---------- */
.hero {
  background:
    radial-gradient(ellipse 60% 80% at 82% 40%, rgba(42,82,152,.55) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(200,16,46,.16) 0%, transparent 65%),
    linear-gradient(135deg, rgba(9,22,48,.90), rgba(26,58,108,.72)),
    url("../images/hero/hero-bg.svg") center/cover no-repeat !important;
}
/* 顶部与底部压暗渐变，提升文字对比与高级感 */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(6,16,38,.25) 0%, transparent 30%, transparent 70%, rgba(6,16,38,.45) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { z-index: 1; }

/* 首屏标题：更大字重对比 + 金色辉光 */
.hero h1 {
  font-size: 52px !important;
  line-height: 1.14 !important;
  letter-spacing: 1px !important;
  text-shadow: 0 4px 24px rgba(0,0,0,.28);
}
.hero h1 .red { text-shadow: 0 0 28px rgba(200,16,46,.35); }
.hero h1 .accent { text-shadow: 0 0 28px rgba(201,164,90,.30); }
.hero-sub { font-size: 19px !important; line-height: 1.75 !important; }

/* 首屏胶囊标签：加微光 */
.hero-eyebrow {
  box-shadow: 0 0 0 1px rgba(200,16,46,.25), 0 6px 18px rgba(200,16,46,.18);
  backdrop-filter: blur(4px);
}

/* 首屏三枚资质徽标：玻璃质感 */
.hero-meta-item .badge {
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(201,164,90,.45) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}

/* ---------- 2. 速览卡片：玻璃拟态 + 呼吸行距 ---------- */
.hero-card {
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.04)) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.15);
  backdrop-filter: blur(14px) saturate(1.2);
  padding: 30px 32px !important;
}
.hero-card h3 {
  font-size: 19px !important;
  letter-spacing: 2px !important;
  padding-bottom: 14px !important;
  margin-bottom: 20px !important;
}
.hero-card dl { row-gap: 17px !important; }
.hero-card dt { font-size: 13px !important; line-height: 1.5; }
.hero-card dd { font-size: 15px !important; line-height: 1.5; }

/* ---------- 3. 按钮：光泽扫过 + 立体阴影 ---------- */
.btn {
  position: relative;
  overflow: hidden;
  border-radius: 6px !important;
  letter-spacing: .3px;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
  pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn-primary {
  background: linear-gradient(135deg, #d41636, #b30d27) !important;
  border-color: transparent !important;
  box-shadow: 0 8px 20px rgba(200,16,46,.30);
}
.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(200,16,46,.42);
  transform: translateY(-3px) !important;
}
.btn-gold {
  background: linear-gradient(135deg, #d9b66a, #b8903f) !important;
  border-color: transparent !important;
  box-shadow: 0 8px 20px rgba(201,164,90,.28);
}

/* ---------- 4. 章节标题：英文小标签 + 精致短线 ---------- */
.section-title { margin-bottom: 60px !important; }
.section-title h2 {
  font-size: 38px !important;
  letter-spacing: 2px !important;
  position: relative;
  padding-top: 18px;
}
/* 用 h2 上方空间放一条装饰短线 */
.section-title h2::before {
  content: "";
  display: block;
  width: 34px; height: 3px;
  background: var(--c-accent);
  margin: 0 auto 14px;
  border-radius: 2px;
}
.section-title .underline {
  width: 80px !important;
  height: 3px !important;
  background: linear-gradient(to right, var(--c-accent), var(--c-gold), var(--c-accent)) !important;
}

/* ---------- 5. 数据条：金色渐变数字 + 分隔光柱 ---------- */
.stats { box-shadow: 0 18px 44px rgba(15,29,54,.22) !important; }
.stats-num {
  font-size: 52px !important;
  background: linear-gradient(180deg, #f0d99b, #c9a45a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.15));
}
.stats-item { position: relative; }
.stats-item:not(:last-child)::after {
  content: "";
  position: absolute; right: 0; top: 22%; height: 56%; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201,164,90,.5), transparent);
}

/* ---------- 6. 卡片：hover 上浮 + 顶部渐变描边 ---------- */
.product-card, .advantage-card, .profile-card, .app-card, .news-card, .knowledge-card {
  transition: transform .32s cubic-bezier(.2,.7,.2,1), box-shadow .32s ease !important;
  position: relative;
}
.product-card::before, .advantage-card::before, .profile-card::before, .app-card::before {
  content: "";
  position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--c-accent), var(--c-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s ease;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.product-card:hover, .advantage-card:hover, .profile-card:hover, .app-card:hover, .news-card:hover, .knowledge-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 22px 46px rgba(15,29,54,.14) !important;
}
.product-card:hover::before, .advantage-card:hover::before, .profile-card:hover::before, .app-card:hover::before {
  transform: scaleX(1);
}

/* ---------- 7. 悬浮工具栏：圆形图标 + 玻璃质感 ---------- */
.float-bar {
  box-shadow: 0 12px 32px rgba(0,0,0,.18) !important;
  border-radius: 14px !important;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.float-item {
  border-radius: 0 !important;
  transition: filter .2s ease, transform .2s ease !important;
}
.float-item:hover { filter: brightness(1.1); transform: scale(1.04) !important; }
.float-ico { filter: drop-shadow(0 1px 2px rgba(0,0,0,.2)); }

/* ---------- 8. 滚动淡入动效（配合 main.js 注入的观察器） ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式微调 ---------- */
@media (max-width: 768px) {
  .hero h1 { font-size: 34px !important; }
  .hero-card { padding: 22px !important; }
  .hero-card dl { row-gap: 13px !important; }
  .section-title h2 { font-size: 28px !important; }
  .stats-num { font-size: 38px !important; }
}
