/* 全局有效页面样式：简洁现代，强调内容可读性与导航 */
/* 全局有效页面样式：简洁现代，强调内容可读性与导航 */

:root {
  --brand-primary: #0d6efd; /* Bootstrap primary */
  --brand-dark: #0b1437;
  --text-muted: #6c757d;
  --bg-soft: #f7f9fc;
  --border-soft: #e6e9ef;
  /* 补充与首页一致的主题变量，供联系模态框等组件使用 */
  --primary-color: #024785;
  --brand-primary: #024785;
  --secondary-color: #1e40af;
}

.news-list { padding: 32px 0 48px; }
      .container{ max-width:1200px; }
      .tabs { display:flex; justify-content:center; gap:60px; border-bottom:1px solid #e6e9ef; margin: 8px 0 24px; padding-bottom: 8px; }
      .tab { font-size: 18px; font-weight:600; color:#6c757d; cursor:pointer; padding:6px 12px; }
      .tab.active { color:#024785; border-bottom:3px solid #024785; }
      .news-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
      .news-item { display: grid; grid-template-columns: 220px 1fr 96px; align-items: center; gap: 16px; background: #fff; border: 1px solid #e6e9ef; border-radius: 0; padding: 14px; text-decoration: none; color: inherit; box-shadow: 0 8px 22px rgba(0,0,0,0.06); }
      .news-item:hover { box-shadow: 0 14px 32px rgba(0,0,0,0.12); transform: translateY(-2px); }
      .thumb { height: 120px; border-radius: 0; background-size: cover; background-position: center; }
      .meta h5 { font-size: 18px; font-weight: 600; margin: 0 0 8px; color: #0b1437; }
      .meta p { margin: 0; color: #6c757d; }
      .date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #003e7a; color: #fff; border-radius: 0; padding: 12px 8px; }
      .date span { font-weight: 700; }
      .hidden { display: none; }
      @media (max-width: 992px){ .news-grid{ grid-template-columns: 1fr; } .news-item{ grid-template-columns: 1fr; } .date{ flex-direction: row; gap: 8px; } }
/* 页面留白，避免被固定导航遮挡 */
body { background: #ffffff; }
.page-offset {height: 52px;}

/* 英雄区 */
.service-hero {
  background: linear-gradient(135deg, rgba(13,110,253,0.08), rgba(13,110,253,0.02));
  border-bottom: 1px solid var(--border-soft);
  padding: 64px 0 32px;
}
.service-hero h1 {
  font-weight: 700;
  letter-spacing: 0.5px;
}
.service-hero p {
  color: var(--text-muted);
  margin-top: 8px;
}

/* 页面顶目导航 */
.service-subnav {
  position: sticky;
  top: 64px; /* 与固定导航协调 */
  z-index: 980;
  background: #fff;
  border-bottom: 1px solid var(--border-soft);
}
.service-subnav .nav {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.service-subnav .nav-link {
  border: 1px solid var(--border-soft);
  margin: 8px 6px;
  padding: 8px 12px;
  color: #212529;
  background: #fff;
}
.service-subnav .nav-link:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.service-subnav .nav-link.active {
  color: #fff!important;
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  box-shadow: 0 4px 10px rgba(13,110,253,0.18);
}

/* 正文内容区 */
.service-content { padding: 32px 0 48px; }

/* 页面标题区域 */
.service-content .section-title {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--brand-primary);
  position: relative;
}
.service-content .section-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #1e40af;
}
.service-content .section-title h2 { 
  font-size: 32px;
  font-weight: 700;
  color: #1e40af;
  color: var(--primary-color);
  margin-bottom: 12px;
}
/* 概述标题前的服务名称高亮 */
.section-title .service-name { color: #f2be45; font-weight: 700; }
.service-content .section-title p { 
  color: var(--text-muted);
  font-size: 16px;
}

/* 内容分区 */
.service-content section { 
  margin: 40px 0;
  padding: 24px;
  background: #ffffff;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.service-content section:hover {
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.1);
  transform: translateY(-2px);
}

/* 二级标题样式 */
.service-content h2 {
  font-size: 22px;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid var(--brand-primary);
  position: relative;
}

.service-content h2::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--brand-primary), #60a5fa);
}

/* 卡片样式增强 */
.service-content .card {
  border: 1px solid var(--border-soft);
  box-shadow: 0 6px 16px rgba(17,24,39,0.04);
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  padding: 24px;
  transition: all 0.3s ease;
}

.service-content .card:hover {
  box-shadow: 0 12px 32px rgba(13, 110, 253, 0.15);
  border-color: var(--brand-primary);
}

.service-content .card p {
  line-height: 1.8;
  color: #334155;
  margin: 0;
}

/* 列表样式美化 - 自动循环三种不同风格 */
.service-content ul { 
  margin-top: 16px;
  padding-left: 0;
  list-style: none;
  counter-reset: list-counter;
}

.service-content ul li { 
  margin: 12px 0;
  padding: 12px 16px 12px 48px;
  background: linear-gradient(90deg, rgba(13, 110, 253, 0.05) 0%, rgba(13, 110, 253, 0.01) 100%);
  border-radius: 8px;
  position: relative;
  line-height: 1.7;
  color: #1e293b;
  transition: all 0.3s ease;
}

/* 通用符号容器（不指定具体符号与颜色，交由手动类控制） */
.service-content ul li::before {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  color: white;
  border-radius: 50%;
  display: none; /* 默认不显示，避免无类的 ul 出现空心圆 */
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.service-content ul li:hover {
  background: linear-gradient(90deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.02) 100%);
  padding-left: 52px;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.08);
}

/* 样式1 - 第1个ul：数字序号（蓝色） */
/* 已移除基于 nth-of-type 的自动符号分配，改为使用手动类
   list-check / list-star / list-arrow / list-numbered-purple / list-diamond 进行控制 */

/* 手动指定样式的类（可选，优先级更高） */
.service-content .list-numbered li {
  counter-increment: list-counter;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.06) 0%, rgba(37, 99, 235, 0.01) 100%);
}

/* 移除未使用的旧样式：.list-numbered */

.service-content .list-star li {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.06) 0%, rgba(245, 158, 11, 0.01) 100%);
}

.service-content .list-star li::before {
  content: '★';
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  font-size: 14px;
  display: flex;
}

.service-content .list-arrow li {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.06) 0%, rgba(16, 185, 129, 0.01) 100%);
}

.service-content .list-arrow li::before {
  content: '→';
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  font-size: 16px;
  font-weight: bold;
  display: flex;
}

/* 新增：紫色对勾（功能价值） */
.service-content .list-check li {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.06) 0%, rgba(139, 92, 246, 0.01) 100%);
}
.service-content .list-check li::before {
  content: '✓';
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  font-size: 14px;
  font-weight: 700;
  display: flex;
}

/* 新增：红色菱形（关键要点） */
.service-content .list-diamond li {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.06) 0%, rgba(239, 68, 68, 0.01) 100%);
}
.service-content .list-diamond li::before {
  content: '◆';
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  font-size: 12px;
  display: flex;
}

/* 新增：紫色数字序号（实施流程） */
.service-content .list-numbered-purple li {
  counter-increment: list-counter;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.06) 0%, rgba(139, 92, 246, 0.01) 100%);
}
.service-content .list-numbered-purple li::before {
  content: counter(list-counter);
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  font-size: 13px;
  font-weight: 700;
  display: flex;
}

/* 特殊强调段落 */
.service-content section > p {
  line-height: 1.9;
  color: #475569;
  padding: 16px 20px;
  border-radius: 4px;
}

/* 注意事项：黄色提醒（!） */
.service-content .list-warning li {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.10) 0%, rgba(251, 191, 36, 0.02) 100%);
}
.service-content .list-warning li::before {
  content: '!';
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  font-size: 16px;
  font-weight: 800;
  display: flex;
}

/* 上下页切换按钮区 */
.service-pager { padding-bottom: 40px; }
.service-pager .btn { min-width: 120px; }

/* 首页服务卡片可点击微样式（不影响现有home.css） */
.services-section a.service-card-link { text-decoration: none; }
.services-section a.service-card-link .service-card {
  transition: transform .18s ease, box-shadow .18s ease;
}
.services-section a.service-card-link:hover .service-card {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(17,24,39,0.08);
}

/* ===== 追加：统一头部导航样式与页面立体化效果 ===== */
/* 顶部导航（仿首页效果，含阴影与毛玻璃） */
.navbar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 16px -8px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  z-index: 1020;
}
.navbar-brand { font-weight: 700; color: var(--brand-primary); }
.nav-link {
  color: #334155 !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease, background 0.2s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active { background: #1e40af; color: #fff !important; }

/* 页面浅灰背景，主体内容白底凸显 */
body { background: #f3f4f6; }

/* 英雄区：背景图 + 前景遮罩，更立体 */
.service-hero {
  position: relative;
  min-height: 220px;
  padding: 62px 0 36px;
  border-bottom: 1px solid var(--border-soft);
  background: url('../img/sofimg/photo-bg.jpg') center/cover no-repeat;
}
.service-hero::before {
  content: '';
  position: absolute; 
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.55), rgba(30,64,175,.35));
}
.service-hero h1, .service-hero p { position: relative; z-index: 1; color: #fff; }
.service-hero p { color: #eef2ff; }

/* 顶部子导航：阴影 + 边界，避免滚动穿透 */
.service-subnav {
  top: 56px;
  z-index: 1010;
  box-shadow: 0 6px 14px -10px rgba(0,0,0,0.28);
}

/* 主体内容容器：白底圆角阴影 */
.service-content {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(17,24,39,0.08);
  padding: 32px 24px 48px;
  margin-top: 20px;
}
.service-content .card { 
  box-shadow: 0 10px 26px rgba(17,24,39,0.06); 
}

/* ===== 页脚样式修复 ===== */
footer {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #ffffff;
  padding: 60px 0 30px;
  margin-top: 60px;
}

footer h5 {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 18px;
}

footer p {
  color: #e0e7ff;
  line-height: 1.8;
  font-size: 14px;
}

footer a {
  color: #bfdbfe;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  font-size: 14px;
}

footer a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footera {
    display: inline;
}

#contactModal .modal-dialog { max-width: 540px; }

#contactModal .modal-content {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    overflow: hidden;
}

#contactModal .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-bottom: none;
}

#contactModal .modal-body {
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
}

#contactModal .contact-info p {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #ffffff;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 0.5rem;
}

#contactModal .contact-info i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
}
/* 社交媒体图标 */
.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff;
  transition: all 0.3s ease;
  margin-bottom: 0;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  padding-left: 0;
}

/* 版权信息区域 */
footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  color: #bfdbfe;
  font-size: 13px;
}

/* 强调色类 */
.accent-color {
  color: var(--brand-primary);
}

/* 响应式优化 */
@media (max-width: 768px) {
  .service-hero {
    padding: 48px 0 24px;
    min-height: 180px;
  }
  
  .service-content {
    padding: 24px 16px 36px;
    border-radius: 12px;
  }
  
  footer {
    padding: 40px 0 20px;
  }
  
  .social-links {
    justify-content: center;
  }
}
@media (min-width: 1200px) {
  .service-content.container { max-width: 1200px; }
}


/* Article Header */
.article-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 2rem;
}

.article-header h1 {
    font-size: 1.7rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.article-meta {
    color: #888;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.article-meta .btn {
    border-radius: 20px;
    padding: 0.2rem 1rem;
}

.dotted {
    border: 0;
    border-top: 1px dashed #ccc;
    margin: 2rem 0;
}

/* Article Content */
.service-content section {
    margin-bottom: 1.5rem;
}

.service-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-content h3  {
    line-height: 1;
    color: #304a6e;
    font-size: 1.3rem;
    padding: 16px 50px;
    border-radius: 4px;
}

.service-content p {
    line-height: 1.9;
    font-size: 1rem;
    text-indent: 2em;
}

.service-content ul {
    padding-left: 2.5em;
    text-indent: 0;
}
.service-content ul li{
    margin-bottom: 0.5rem;
}

/* Article Pagination */
.article-pagination {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.pagination-item a {
    display: block;
    padding: 20px;
    border: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    height: 100%;
    border-radius: 5px;
}

.pagination-item a:hover {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.pagination-item span {
    font-size: 0.9rem;
    color: #888;
    display: block;
    margin-bottom: 8px;
}

.pagination-item a:hover span {
    color: #fff;
}

.pagination-item p {
    margin: 0;
    text-indent: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
    font-weight: 500;
}

.news-paged {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    border: 1px solid #eee;
    background-color: #f8f9fa;
    margin-top: 2rem;
}

.news-paged a {
    flex: 1;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    color: #333;
    border-right: 1px solid #eee;
    transition: all .2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.news-paged a:last-child {
    border-right: none;
}

.news-paged a:hover {
    background-color: #0d6efd;
    color: #fff;
}

.news-paged a.disabled {
    pointer-events: none;
    opacity: .55;
}

.related-articles { margin-top: 2rem; }
.related-articles h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; display:flex; align-items:center; gap:8px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-item { display: grid; grid-template-rows: 240px auto; border: 1px solid #eee; border-radius: 4px; overflow: hidden; text-decoration: none; color: #333; transition: transform .2s ease, box-shadow .2s ease; }
.related-item img { width: 100%; height: 240px; object-fit: cover; }
.related-item .title { padding: 10px 12px; font-size: 14px; font-weight: 500; }
.related-item .title i { color: var(--text-muted); margin-left: 6px; }
.related-item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); border-color: var(--brand-primary); }
@media (max-width: 768px){ .related-grid { grid-template-columns: repeat(2, 1fr);} }
.navbar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 16px -8px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  z-index: 1020;
}
.navbar-brand { font-weight: 700; color: var(--brand-primary); }
.nav-link {
  color: #334155 !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease, background 0.2s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active { background: #1e40af; color: #fff !important; }
