/* ==========================================================
   components.css — 通用 UI 组件（按钮、标题、表单、Hero）
   依赖：base.css
   ========================================================== */

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 76, 117, 0.3);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 76, 117, 0.4);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ===== Section 标题 ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 auto;
}

/* ===== Hero（通用骨架） ===== */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(160deg, #f0f7ff 0%, #ffffff 50%, #f5f8fc 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(15, 76, 117, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(15, 76, 117, 0.06);
  border: 1px solid rgba(15, 76, 117, 0.12);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== 表单（通用） ===== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 117, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235c6b7a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ==========================================================
   联系区（两个页面共用）
   ========================================================== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; margin-top: 48px;
}
.contact-info {
  display: flex; flex-direction: column; gap: 28px;
}
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
}
.contact-icon {
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 20px;
}
.qr-img {
  width: 140px; height: 140px; border-radius: 10px;
  background: #fff; padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.contact-item h4 {
  font-size: 0.9rem; font-weight: 600;
  color: rgba(255, 255, 255, 0.7); margin-bottom: 4px;
}
.contact-item p, .contact-item a {
  font-size: 1.05rem; font-weight: 600;
  color: #fff; line-height: 1.5;
}
.contact-item a:hover { text-decoration: underline; }

/* 联系区 section 容器（两个页面共用） */
.contact-section {
  background: linear-gradient(160deg, #0f4c75 0%, #1b6ca8 50%, #3282b8 100%);
  color: #fff;
}
.contact-section .section-title { color: #fff; }
.contact-section .section-desc { color: rgba(255, 255, 255, 0.8); }

/* 联系表单卡片 */
.contact-form {
  background: #fff; border-radius: var(--radius);
  padding: 36px; color: var(--text-dark);
  box-shadow: var(--shadow-lg);
}
.contact-form h3 {
  font-size: 1.25rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 24px;
}

/* ==========================================================
   Hero 右侧卡片（两个页面共用容器结构）
   颜色状态 .status-icon 各页面颜色不同，各自私有覆盖
   ========================================================== */
.hero-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.hero-card-header h3 { font-size: 1rem; color: var(--text-dark); }
.hero-card-header p { font-size: 0.72rem; color: var(--text-muted); }

/* Hero 卡片响应式 */
@media (max-width: 640px) {
  .hero-card {
    padding: 24px;
    border-radius: 16px;
  }
  .hero-card-header {
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }
  .hero-card-header .status-icon {
    width: 36px; height: 36px;
  }
}

/* ==========================================================
   流程步骤（两个页面共用基础结构，列数和细节各自覆盖）
   ========================================================== */
.process-steps {
  display: grid;
  gap: 20px;
  position: relative;
}

.step-num {
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
}

/* ==========================================================
   通用深色背景 section（白色文字）— contact/advantage 共用
   ========================================================== */
.section-dark {
  background: linear-gradient(160deg, #0f4c75 0%, #1b6ca8 50%, #3282b8 100%);
  color: #fff;
}
.section-dark .section-title { color: #fff; }
.section-dark .section-desc { color: rgba(255, 255, 255, 0.8); }
.section-dark .section-tag { color: rgba(255, 255, 255, 0.7); }

/* ==========================================================
   流程步骤标题/描述（两个页面共用文字排版）
   字号差异（index 0.85rem vs shop 0.82rem）由各页微调
   ========================================================== */
.process-step h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.process-step p {
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================
   通用 section 背景切换白/软
   ========================================================== */
.section-bg-white { background: #fff; }
.section-bg-soft  { background: var(--bg-soft); }

/* ==========================================================
   通用卡片 hover 上浮（service/category/advantage/team 共用模式）
   上浮距离和阴影深度略有差异，这里给基础款
   ========================================================== */
.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================
   通用 featured 深色卡片（带渐变 + 白色文字覆盖）
   service-card.featured / category-card.featured 模式相同
   ========================================================== */
.featured-dark {
  background: linear-gradient(160deg, #0f4c75 0%, #1b6ca8 100%) !important;
  border: none !important;
  color: #fff;
}
.featured-dark h3 { color: #fff !important; }
.featured-dark .featured-sub,
.featured-dark .featured-sub li { color: rgba(255, 255, 255, 0.9); }
.featured-dark .featured-sub li::before { color: #7dd3fc; }
.featured-dark .featured-tag {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
}
.featured-dark .featured-icon {
  background: rgba(255, 255, 255, 0.15) !important;
}
.featured-dark .featured-footer {
  border-top-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================
   通用三列网格（services-grid / category-grid 结构相同）
   ========================================================== */
.services-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ==========================================================
   通用白卡片（service-card / category-card 基础结构相同）
   hover 上浮 + featured 深色覆盖各页面颜色不同，仍私有
   ========================================================== */
.service-card,
.category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.service-card:hover,
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* ==========================================================
   通用 card 内 tag / icon / h3 / desc 排版
   service 和 category 结构完全相同
   ========================================================== */
.service-card h3,
.category-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.service-desc,
.category-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-tag,
.category-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.service-tag {
  background: rgba(15, 76, 117, 0.08);
  color: var(--primary);
}
.category-tag {
  background: rgba(251, 146, 60, 0.12);
  color: #ea8c2c;
}

.service-icon,
.category-icon,
.advantage-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(15, 76, 117, 0.1) 0%, rgba(0, 180, 216, 0.15) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.category-icon {
  width: 56px;
  height: 56px;
  font-size: 26px;
}

/* ==========================================================
   通用带 ✓ 的 list（service-features / category-features / warranty-list）
   ========================================================== */
.service-features li,
.category-features li,
.warranty-list li {
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-dark);
  padding: 6px 0;
}
.service-features li::before,
.category-features li::before,
.warranty-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ==========================================================
   卡片尾部 note（category-note / services-note / bundle-fee）
   放在卡片底部，margin-top:auto 贴底
   ========================================================== */
.category-note,
.services-note {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================
   featured 深色卡片覆盖（service-card.featured / category-card.featured）
   结构完全相同，只是内容类名不同
   ========================================================== */
.service-card.featured,
.category-card.featured {
  background: linear-gradient(160deg, #0f4c75 0%, #1b6ca8 100%);
  border: none;
  color: #fff;
}
.service-card.featured h3,
.category-card.featured h3 {
  color: #fff;
}
.service-card.featured .service-desc,
.service-card.featured .service-features li,
.category-card.featured .category-desc,
.category-card.featured .category-features li,
.category-card.featured .category-note {
  color: rgba(255, 255, 255, 0.9);
}
.service-card.featured .service-tag,
.category-card.featured .category-tag {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.category-card.featured .category-features li::before {
  color: #7dd3fc;
}
.service-card.featured .service-icon,
.category-card.featured .category-icon {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================
   价格排版（service-price 结构通用）
   ========================================================== */
.service-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}
.service-price small {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.service-card.featured .service-price small {
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================
   左边框提示框（services-note / warranty-card 基础相同）
   颜色差异由各页面单独覆盖
   ========================================================== */
.services-note,
.warranty-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 32px;
}

/* ==========================================================
   带虚线分隔的 list 行（warranty-list 独有虚线，service/category-features 没有）
   ========================================================== */
.warranty-list li {
  border-bottom: 1px dashed rgba(15, 76, 117, 0.08);
  padding: 8px 0;
}
.warranty-list li:last-child {
  border-bottom: none;
}

/* ==========================================================
   Hero 功能列表（带圆角方框 ✓ 图标）— 目前 index 独享，shop 的 Hero 是 mini-product
   但结构清晰，提前放公共
   ========================================================== */
.feature-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-dark);
}
.feature-list .check {
  width: 22px;
  height: 22px;
  background: rgba(0, 180, 216, 0.1);
  color: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}

/* ==========================================================
   Hero 数字统计组（stat-row / stat / stat-num / stat-label）
   ========================================================== */
.stat-row { display: flex; gap: 24px; margin-bottom: 24px; }
.stat { flex: 1; text-align: center; }
.stat-num { font-size: 1.75rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }
