/* ========== 服务页面通用样式 ========== */

:root {
  --primary: #1a365d;
  --primary-dark: #15325e;
  --primary-light: #2c5282;
  --secondary: #2A0944;
  --accent: #c9a227;
  --accent-hover: #b8941f;
  --light-bg: #f8f9fa;
  --warning-color: #c0392b;
  --text-dark: #333333;
  --text-gray: #666666;
  --border-color: #e2e8f0;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  --card-hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Source Han Serif', 'Noto Serif SC', 'Microsoft YaHei', sans-serif;
}

body {
  line-height: 1.7;
  color: #4a5568;
  min-height: 100vh;
  background: #f8f9fa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 主内容容器 */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  background: #ffffff;
}

/* 专业页面头部 */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 80px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  font-weight: 300;
}

/* 面包屑导航 */
.breadcrumb {
  background: #f8fafc;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
}

.breadcrumb-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}

.breadcrumb-list a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb-list a:hover {
  color: var(--accent);
}

.breadcrumb-list .separator {
  color: var(--text-gray);
}

.text-center {
  text-align: center;
}

/* 返回导航 */
.back-to-home {
  text-align: center;
  margin: 1.5rem 0;
}

.back-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--accent);
}

/* 专业卡片设计 - 参考maxlaw风格 */
.service-card {
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-2px);
}

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

.service-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 20px;
}

.service-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary);
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

/* 增强型详情项 */
.service-details {
  margin-top: 30px;
  border-top: 2px solid var(--light-bg);
  padding-top: 30px;
}

.detail-item {
  margin: 40px 0;
  background: var(--light-bg);
  border-radius: 8px;
  padding: 25px;
  transition: transform 0.3s;
  border-left: 3px solid var(--primary);
}

.detail-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.item-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.item-header h4 {
  color: var(--primary);
  font-size: 1.25em;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
}

.specific-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.specific-list li {
  padding: 15px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
  padding-left: 45px;
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.specific-list li:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.specific-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1em;
  color: var(--accent);
}

/* 法律声明增强 */
.legal-notice {
  background: var(--primary);
  color: white;
  padding: 30px;
  border-radius: 12px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 25px;
  position: relative;
  overflow: hidden;
}

.legal-notice::before {
  content: '\f0e3';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: -30px;
  top: -30px;
  font-size: 8rem;
  opacity: 0.15;
}

/* 紧急联系人部分 */
.content-section {
  margin: 50px 0;
  padding-top: 30px;
  border-top: 2px solid var(--light-bg);
}

.section-title {
  color: var(--primary);
  font-size: 1.8em;
  margin-bottom: 35px;
  position: relative;
  padding-left: 40px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 30px;
  height: 3px;
  background: var(--accent);
}

.contact-box {
  display: flex;
  justify-content: center;
}

.contact-card {
  background: white;
  border-radius: 16px;
  padding: 40px 35px;
  box-shadow: 0 10px 30px rgba(42,9,68,0.12);
  width: 100%;
  max-width: 480px;
  text-align: center;
  transition: transform 0.3s;
  margin: 0 auto;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-icon {
  font-size: 3.2rem;
  margin-bottom: 25px;
}

.contact-card h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--primary);
}

.contact-info {
  margin: 30px 0;
  padding: 25px;
  background: var(--light-bg);
  border-radius: 10px;
}

.contact-phone {
  display: block;
  color: var(--accent);
  font-size: 1.6em;
  font-weight: bold;
  text-decoration: none;
  margin-top: 10px;
  transition: color 0.3s;
}

.contact-phone:hover {
  color: var(--warning-color);
}

.contact-tips {
  font-size: 0.95em;
  color: #666;
  line-height: 1.5;
  margin-top: 25px;
}

.header {
  background: linear-gradient(135deg, rgba(26, 54, 95, 0.95), rgba(21, 50, 94, 0.9));
  padding: 80px 20px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light), var(--accent));
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
  font-size: 1.1rem;
  opacity: 0.95;
  letter-spacing: 1px;
}

/* 服务容器 */
.service-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.service-container h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.service-container h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* 服务网格布局 - 参考maxlaw分类展示 */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

/* 服务卡片 - 专业风格 */
.service-grid .service-card {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  border: 1px solid var(--border-color);
}

.service-grid .service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--primary-light);
}

.service-grid .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.service-grid .service-card h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 15px;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
  letter-spacing: 0.3px;
}

.service-grid .service-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.service-grid .service-card p {
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 15px;
}

.service-grid .service-card img.service-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

/* 特性列表 - 专业风格 */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  padding: 0.9rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-gray);
  line-height: 1.6;
  border-bottom: 1px solid var(--border-color);
  flex: 1;
  font-size: 0.95rem;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li i {
  position: absolute;
  left: 0;
  top: 1rem;
  color: var(--accent);
  font-size: 0.9rem;
}

/* 流程网格 */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.process-step {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.process-step img.process-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 1.2rem;
}

.process-step h3 {
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.process-step p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 动态效果 */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.warning-item {
  animation: pulse 2s infinite;
  border: 2px solid var(--warning-color);
}

/* 提取内联样式到CSS类 */
.service-title {
  color: var(--primary);
  margin-bottom: 15px;
}

.service-subtitle {
  color: var(--secondary);
  font-size: 1.1em;
}

.service-icon-large {
  font-size: 1.8em;
}

.faq-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem;
}

.faq-section-title {
  text-align: center;
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.faq-item h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: #666;
}

/* 响应式优化 */
@media (max-width: 768px) {
  body {
    padding: 20px 10px;
  }

  .service-card {
    padding: 20px;
  }

  .page-header {
    padding: 60px 15px 40px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .page-header p {
    font-size: 1rem;
  }

  .breadcrumb-list {
    flex-wrap: wrap;
    font-size: 0.9rem;
  }

  .specific-list {
    grid-template-columns: 1fr;
  }

  .legal-notice {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .section-title {
    font-size: 1.5em;
    padding-left: 30px;
  }

  .contact-card {
    padding: 20px;
  }

  .detail-item {
    padding: 15px;
    margin: 20px 0;
  }

  .item-header h4 {
    font-size: 1.1em;
  }

  .specific-list li {
    padding: 12px;
    padding-left: 45px;
    font-size: 0.9rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-grid .service-card {
    min-height: auto;
    padding: 20px;
  }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
  .page-header h1 {
    font-size: 1.5rem;
  }

  .service-card {
    padding: 15px;
  }

  .section-title {
    font-size: 1.3em;
  }

  .contact-phone {
    font-size: 1.3em;
  }

  .breadcrumb-list {
    font-size: 0.85rem;
  }
}