/* ==========================================================================
   道邦企服 (dbbk.cn) - 组件库样式
   按钮 · 卡片 · 表单 · 面包屑 · FAQ · 定价等
   ========================================================================== */

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
  letter-spacing: 0.3px;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-glow));
  color: var(--white);
  box-shadow: 0 6px 24px rgba(30, 111, 217, 0.3);
}
.btn-primary:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(30, 111, 217, 0.4);
}

.btn-blue {
  background: var(--blue-deep);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-blue:hover { color: var(--white); background: var(--blue-ink); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--blue-deep);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue-deep); color: var(--white); border-color: var(--blue-deep); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-deep); background: var(--blue-mist); }

.btn-soft {
  background: var(--blue-mist);
  color: var(--blue-deep);
}
.btn-soft:hover { background: var(--blue-light); color: var(--blue-ink); }

.btn-dark {
  background: var(--deep-blue);
  color: var(--white);
}
.btn-dark:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }

.btn-sm { padding: 9px 20px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  padding: 14px 22px;
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.breadcrumb a { color: var(--body); }
.breadcrumb a:hover { color: var(--blue-deep); }
.breadcrumb span.sep { color: var(--faint); }
.breadcrumb span.current { color: var(--blue-deep); font-weight: 600; }

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--ice-blue-card);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.35s var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--blue-mist);
}

/* 带顶部色条的卡片 */
.card-bar { position: relative; overflow: hidden; }
.card-bar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-glow));
}

/* ---------- 徽章 / 标签 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
}
.badge-blue { background: var(--blue-mist); color: var(--blue-ink); }
.badge-dark { background: var(--deep-blue); color: var(--white); }
.badge-orange { background: #FFF0E0; color: #C65A1A; }
.badge-dot::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 13px 18px;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r);
  transition: all 0.25s var(--ease);
  outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(59, 158, 255, 0.15);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-tip { font-size: 13.5px; margin-top: 14px; color: var(--muted); }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 42px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 15px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--blue-glow));
}
.tl-item { position: relative; margin-bottom: 40px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -37px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue-deep);
  box-shadow: 0 0 0 4px var(--blue-mist);
}
.tl-year { font-size: 14px; font-weight: 700; color: var(--blue-deep); margin-bottom: 6px; }
.tl-item h4 { font-size: 16px; margin-bottom: 6px; }
.tl-item p { font-size: 14px; color: var(--body); }

/* ---------- FAQ 折叠 ---------- */
.faq-item {
  background: var(--ice-blue-card);
  border-radius: var(--r);
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.faq-item.open { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.faq-q .faq-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--blue-mist);
  color: var(--blue-deep);
  transition: all 0.3s var(--ease);
}
.faq-item.open .faq-q .faq-icon { transform: rotate(180deg); background: var(--blue-deep); color: var(--white); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner { padding: 0 26px 22px; font-size: 14.5px; color: var(--body); line-height: 1.85; }

/* ---------- 定价卡片 ---------- */
.price-card {
  background: var(--ice-blue-card);
  border-radius: var(--r-lg);
  padding: 40px 28px;
  text-align: center;
  border: 2px solid var(--border);
  transition: all 0.35s var(--ease);
  position: relative;
}
.price-card:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); }
.price-card.featured {
  border-color: var(--blue-deep);
  box-shadow: var(--shadow-blue);
}
.price-card.featured::before {
  content: "热门";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-glow));
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 20px;
  border-radius: 20px;
}
.price-name { font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.price-desc { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.price-num { font-size: 46px; font-weight: 800; color: var(--blue-deep); margin-bottom: 6px; }
.price-num small { font-size: 16px; font-weight: 500; color: var(--muted); }
.price-unit { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.price-features { text-align: left; margin-bottom: 32px; }
.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 14px;
  color: var(--body);
  border-bottom: 1px dashed var(--border);
}
.price-features li svg { flex-shrink: 0; color: var(--success); }
.price-features li:last-child { border-bottom: none; }

/* ---------- 统计数字 ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat-box { text-align: center; padding: 32px 20px; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.stat-box strong {
  display: block;
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat-box span { font-size: 14px; color: var(--muted); margin-top: 4px; display: block; }

/* ---------- 信息行 ---------- */
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-row .info-ico {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: var(--blue-mist);
  color: var(--blue-deep);
}
.info-row .info-body h5 { font-size: 15px; margin-bottom: 3px; }
.info-row .info-body p { font-size: 14px; color: var(--body); }

/* ---------- 标签云 ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud a {
  display: inline-block;
  padding: 7px 18px;
  font-size: 13px;
  color: var(--body);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.25s var(--ease);
}
.tag-cloud a:hover { color: var(--blue-deep); border-color: var(--blue); background: var(--blue-mist); }

/* ---------- 空状态 / 404 ---------- */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-state .empty-code {
  font-size: 100px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--blue-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

/* ==========================================================================
   核心优势卡片（通用，所有页面均可使用）
   ========================================================================== */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.adv-card {
  background: var(--ice-blue-card);
  border-radius: var(--r-lg);
  padding: 36px 26px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.adv-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-glow));
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.adv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-blue);
  border-color: var(--blue-mist);
}
.adv-card:hover::before { transform: scaleX(1); }
.adv-ico {
  width: 68px; height: 68px;
  margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r);
  background: linear-gradient(135deg, var(--blue-mist), #D4E7FF);
  transition: transform 0.35s var(--ease);
}
.adv-card:hover .adv-ico { transform: scale(1.1) rotate(-5deg); }
.adv-no {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--faint);
  margin-bottom: 8px;
}
.adv-card h3 { font-size: 18px; margin-bottom: 10px; }
.adv-card p { font-size: 13.5px; color: var(--body); }

/* ==========================================================================
   流程步骤（时间轴连线 style）
   ========================================================================== */
.steps-wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}
.steps-wrap::before {
  content: "";
  position: absolute;
  top: 34px; left: 10%; right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue) 0, var(--blue) 10px, transparent 10px, transparent 20px);
}
.step-box { text-align: center; position: relative; }
.step-circle {
  width: 68px; height: 68px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue);
  font-size: 20px;
  font-weight: 800;
  color: var(--blue-deep);
  position: relative;
  z-index: 1;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}
.step-box:hover .step-circle {
  background: var(--blue-deep);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: var(--shadow-blue);
}
.step-box h4 { font-size: 16px; margin-bottom: 8px; }
.step-box p { font-size: 13.5px; color: var(--muted); }

/* ==========================================================================
   服务矩阵卡片（3 列网格）
   ========================================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cat-card {
  background: var(--ice-blue-card);
  border-radius: var(--r-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--blue-mist);
}
.cat-card .cat-ico {
  width: 54px; height: 54px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.cat-card:nth-child(3n+1) .cat-ico { background: var(--blue-mist); color: var(--blue-deep); }
.cat-card:nth-child(3n+2) .cat-ico { background: #E8F0FF; color: #3B7DD8; }
.cat-card:nth-child(3n) .cat-ico { background: #E0F4FF; color: #0F76A8; }
.cat-card h4 { font-size: 17px; margin-bottom: 8px; }
.cat-card p { font-size: 13.5px; color: var(--body); margin-bottom: 14px; }
.cat-card .cat-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-deep);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.25s var(--ease);
}
.cat-card:hover .cat-link { gap: 8px; }

/* ==========================================================================
   新闻列表 — 卡片流
   ========================================================================== */
.news-list-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.news-item {
  display: flex;
  flex-direction: column;
  background: var(--ice-blue-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.35s var(--ease);
}
.news-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--blue-mist);
}
.news-item .n-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}
.news-item .n-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.news-item:hover .n-thumb img { transform: scale(1.08); }
.news-item .n-body { flex: 1; padding: 24px; display: flex; flex-direction: column; }
.news-item .n-body h4 {
  font-size: 17px;
  margin-bottom: 10px;
  transition: color 0.25s var(--ease);
  line-height: 1.4;
}
.news-item:hover .n-body h4 { color: var(--blue-deep); }
.news-item .n-excerpt {
  font-size: 14px;
  color: var(--body);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.news-item .n-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.news-item .n-foot .date { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.news-item .n-foot .read { color: var(--blue-deep); font-weight: 600; }

/* ==========================================================================
   CTA 行动号召横幅
   ========================================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--blue-deep) 60%, var(--blue-glow) 100%);
  border-radius: var(--r-xl);
  padding: 52px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  top: -120px; right: -60px;
  filter: blur(40px);
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 240px; height: 240px;
  background: rgba(91, 168, 255, 0.15);
  border-radius: 50%;
  bottom: -100px; left: 10%;
  filter: blur(30px);
}
.cta-text { position: relative; z-index: 1; }
.cta-text h3 { font-size: 28px; color: var(--white); margin-bottom: 8px; }
.cta-text p { font-size: 15.5px; color: rgba(255, 255, 255, 0.85); }
.cta-actions { display: flex; gap: 14px; position: relative; z-index: 1; flex-shrink: 0; }
.cta-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}
.cta-actions .btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }
.cta-actions .btn-primary { background: var(--white); color: var(--blue-deep); }
.cta-actions .btn-primary:hover { background: var(--ice-blue); }

/* ==========================================================================
   数据统计横幅
   ========================================================================== */
.data-showcase {
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--blue-deep) 100%);
  border-radius: var(--r-xl);
  padding: 48px 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.data-showcase::before {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  background: var(--blue-glow);
  border-radius: 50%;
  top: -150px; left: -100px;
  filter: blur(80px);
  opacity: 0.2;
}
.data-showcase .d-item { text-align: center; position: relative; z-index: 1; }
.data-showcase .d-item strong {
  display: block;
  font-size: 44px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}
.data-showcase .d-item span {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* ---------- 通用组件响应式 ---------- */
@media (max-width: 1024px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-box strong { font-size: 34px; }
  .breadcrumb { flex-wrap: wrap; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-wrap { grid-template-columns: repeat(3, 1fr); }
  .steps-wrap::before { display: none; }
  .news-list-wrap { grid-template-columns: repeat(2, 1fr); }
  .data-showcase { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .cta-band { flex-direction: column; text-align: center; padding: 36px 24px; }
  .steps-wrap { grid-template-columns: repeat(2, 1fr); }
  .news-list-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .adv-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .steps-wrap { grid-template-columns: 1fr; }
  .data-showcase { grid-template-columns: 1fr; gap: 20px; }
}
