/* ==================== 全局样式 ==================== */
:root {
  --primary: #1a237e;
  --primary-light: #3949ab;
  --primary-dark: #0d47a1;
  --accent: #ffc107;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --bg-light: #f5f7fa;
  --border-color: #e0e0e0;
}

body {
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text-dark);
  background: #fff;
}

.main-content { min-height: 60vh; }

/* ==================== 导航栏 ==================== */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 0.625rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.site-header .navbar-brand { font-size: 1.25rem; }
.site-header .nav-link { color: rgba(255,255,255,0.85); font-weight: 500; padding: 0.5rem 1rem !important; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: #fff; }
.site-header .nav-link.active { border-bottom: 2px solid var(--accent); }

/* ==================== Hero区域 ==================== */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #01579b 100%);
  position: relative;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><path d="M30 30c0-11 9-20 20-20s20 9 20 20-9 20-20 20-20-9-20-20zm-20 0c0-11 9-20 20-20"/></g></g></svg>');
}
.min-vh-50 { min-height: 50vh; }

/* ==================== 证书卡片 ==================== */
.cert-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}
.cert-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}
.cert-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: var(--text-dark);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}
.cert-brand-tag {
  padding: 10px 15px 0;
  display: flex;
  gap: 4px;
}
.cert-card .card-title {
  font-size: 1rem;
  font-weight: 600;
  min-height: 2.5rem;
}
.cert-price { display: flex; align-items: baseline; justify-content: center; }
.price-symbol { font-size: 1rem; color: #dc3545; font-weight: 600; }
.price-amount { font-size: 2rem; color: #dc3545; font-weight: 700; line-height: 1; }
.price-unit { font-size: 0.85rem; color: var(--text-muted); }
.cert-features { list-style: none; padding: 0; margin: 0; font-size: 0.85rem; }
.cert-features li { padding: 3px 0; color: var(--text-muted); }

.cert-list-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s;
}
.cert-list-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.cert-detail-price { display: flex; align-items: baseline; gap: 2px; }
.cert-detail-price .price-amount { font-size: 2.5rem; }

/* ==================== 品牌卡片 ==================== */
.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0.5rem;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text-dark);
  height: 100%;
}
.brand-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-3px);
  color: var(--primary);
  border-color: var(--primary-light);
}
.brand-logo-area {
  width: 56px; height: 56px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
}
.brand-logo-area i { font-size: 1.75rem; color: var(--primary); }
.brand-name { font-weight: 600; font-size: 0.95rem; text-align: center; }
.brand-origin { font-size: 0.75rem; color: var(--text-muted); }

.brand-detail-card { border: 1px solid var(--border-color); border-radius: 10px; transition: all 0.3s; }
.brand-detail-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.brand-logo-lg {
  width: 48px; height: 48px;
  background: var(--bg-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-logo-lg i { font-size: 1.5rem; color: var(--primary); }
.brand-logo-sm {
  width: 32px; height: 32px;
  background: var(--bg-light);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-logo-sm i { font-size: 1rem; color: var(--primary); }

/* ==================== 类型卡片 ==================== */
.type-card {
  display: block;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: all 0.3s;
  color: var(--text-dark);
  height: 100%;
}
.type-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}
.type-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.type-icon i { font-size: 1.5rem; color: #fff; }
.type-detail-card { border: 1px solid var(--border-color); border-radius: 10px; transition: all 0.3s; }
.type-detail-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.type-icon-lg {
  width: 56px; height: 56px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.type-icon-lg i { font-size: 1.75rem; }

/* ==================== 筛选卡片 ==================== */
.filter-card { border: 1px solid var(--border-color); border-radius: 10px; }

/* ==================== 页脚 ==================== */
.site-footer { background: #1a1a2e; color: #adb5bd; }
.text-muted-light { color: rgba(255,255,255,0.6) !important; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }

/* ==================== 表格 ==================== */
.table > :not(caption) > * > * { padding: 0.75rem; }
.table thead th { background: #f8f9fa; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; color: var(--text-muted); }

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  .price-amount { font-size: 1.5rem; }
  .cert-detail-price .price-amount { font-size: 2rem; }
}
