/* 企业官网演示模板 — 原创样式，资源自建（Bootstrap 本地化） */
:root {
  --tpl-primary: #1a6bb8;
  --tpl-primary-dark: #145a9a;
  --tpl-accent: #00a896;
  --tpl-dark: #1a2332;
  --tpl-muted: #6c757d;
  --tpl-soft: #f4f7fb;
  --tpl-border: #e7ecf3;
  --tpl-radius: 0.5rem;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  color: #333;
}

.tpl-navbar {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--tpl-border);
  backdrop-filter: blur(8px);
}

.tpl-navbar .nav-link {
  color: var(--tpl-dark) !important;
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
}

.tpl-navbar .nav-link:hover,
.tpl-navbar .nav-link:focus {
  color: var(--tpl-primary) !important;
}

.tpl-logo {
  height: 40px;
  width: auto;
}

@media (min-width: 768px) {
  .tpl-logo {
    height: 44px;
  }
}

.tpl-hero {
  background: linear-gradient(135deg, #0f2847 0%, #1a6bb8 55%, #00a896 100%);
  color: #fff;
  padding: 4rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.tpl-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
}

.tpl-hero .container {
  position: relative;
  z-index: 1;
}

.tpl-hero h1 {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tpl-hero .lead {
  opacity: 0.92;
  max-width: 36rem;
}

.tpl-btn-light {
  background: #fff;
  color: var(--tpl-primary-dark);
  border: none;
  font-weight: 600;
}

.tpl-btn-light:hover {
  background: var(--tpl-soft);
  color: var(--tpl-primary-dark);
}

.tpl-btn-outline-light {
  border-width: 2px;
  font-weight: 600;
}

.tpl-section {
  padding: 3.25rem 0;
}

.tpl-section-alt {
  background: var(--tpl-soft);
}

.tpl-section-title {
  font-weight: 700;
  color: var(--tpl-dark);
  margin-bottom: 0.5rem;
}

.tpl-section-desc {
  color: var(--tpl-muted);
  max-width: 40rem;
  margin-bottom: 2rem;
}

.tpl-stat-card {
  background: #fff;
  border: 1px solid var(--tpl-border);
  border-radius: var(--tpl-radius);
  padding: 1.5rem 1rem;
  text-align: center;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
}

.tpl-stat-card:hover {
  box-shadow: 0 0.75rem 2rem rgba(26, 107, 184, 0.12);
  transform: translateY(-2px);
}

.tpl-stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--tpl-primary);
  line-height: 1.2;
}

.tpl-stat-label {
  color: var(--tpl-muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.tpl-feature-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--tpl-primary), var(--tpl-accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.tpl-card {
  border: 1px solid var(--tpl-border);
  border-radius: var(--tpl-radius);
  overflow: hidden;
  height: 100%;
  background: #fff;
  transition: box-shadow 0.2s;
}

.tpl-card:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

.tpl-card-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef4fa;
}

.tpl-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tpl-ratio-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tpl-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.tpl-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tpl-dark);
  margin-bottom: 0.5rem;
}

.tpl-card-title a {
  color: inherit;
  text-decoration: none;
}

.tpl-card-title a:hover {
  color: var(--tpl-primary);
}

.tpl-card-text {
  font-size: 0.9rem;
  color: var(--tpl-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tpl-meta {
  font-size: 0.8rem;
  color: #999;
}

.tpl-breadcrumb-wrap {
  background: var(--tpl-soft);
  border-bottom: 1px solid var(--tpl-border);
  padding: 0.85rem 0;
}

.tpl-breadcrumb {
  margin-bottom: 0;
}

.tpl-sidebar-card {
  border: 1px solid var(--tpl-border);
  border-radius: var(--tpl-radius);
  padding: 1rem 1.15rem;
  background: #fff;
  margin-bottom: 1rem;
}

.tpl-sidebar-card h6 {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--tpl-border);
}

.tpl-list-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--tpl-border);
}

.tpl-list-item:last-child {
  border-bottom: none;
}

.tpl-list-thumb {
  flex: 0 0 140px;
  aspect-ratio: 4 / 3;
  border-radius: var(--tpl-radius);
  overflow: hidden;
  background: #eef4fa;
}

.tpl-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 575.98px) {
  .tpl-list-thumb {
    flex: 0 0 100px;
  }
}

.tpl-list-body {
  flex: 1;
  min-width: 0;
}

.tpl-list-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.tpl-list-title a {
  color: var(--tpl-dark);
  text-decoration: none;
}

.tpl-list-title a:hover {
  color: var(--tpl-primary);
}

.tpl-article-content {
  line-height: 1.85;
  font-size: 1.02rem;
}

.tpl-article-content p {
  margin-bottom: 1rem;
}

.tpl-article-content h2,
.tpl-article-content h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.tpl-footer {
  background: var(--tpl-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}

.tpl-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.tpl-footer a:hover {
  color: #fff;
}

.tpl-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

/* 分页：匹配迅睿/Carnegie 风格 ul.pagination > li > a */
ul.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

ul.pagination li {
  margin: 0;
  padding: 0;
}

ul.pagination li a {
  display: inline-block;
  min-width: 2.5rem;
  padding: 0.45rem 0.65rem;
  text-align: center;
  border: 1px solid var(--tpl-border);
  border-radius: var(--tpl-radius);
  color: var(--tpl-dark);
  text-decoration: none;
  font-size: 0.9rem;
  background: #fff;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

ul.pagination li a:hover {
  border-color: var(--tpl-primary);
  color: var(--tpl-primary);
  background: rgba(26, 107, 184, 0.06);
}

ul.pagination li a.active {
  background: var(--tpl-primary);
  border-color: var(--tpl-primary);
  color: #fff !important;
  cursor: default;
  pointer-events: none;
}

ul.pagination li:first-child a {
  border-style: dashed;
  color: var(--tpl-muted);
  cursor: default;
  pointer-events: none;
  background: var(--tpl-soft);
}

/* CTA 条 */
.tpl-cta-bar {
  background: linear-gradient(90deg, var(--tpl-primary-dark), var(--tpl-accent));
  color: #fff;
  padding: 2.5rem 0;
}

/* 404 / 消息页 */
.tpl-page-simple {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
}
