/* 基础变量 */
:root {
    --primary-color: #2a7fba;
    --primary-dark: #1e5f8b;
    --secondary-color: #4cb050;
    --accent-color: #ff6d00;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-light: #f9f9f9;
    --bg-dark: #222;
    --white: #fff;
    --gray: #e0e0e0;
    --gray-dark: #ccc;
    --font-main: 'Noto Sans SC', sans-serif;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

/* 容器和布局 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面头部 */
.services-header {
    background: linear-gradient(135deg, rgba(42, 127, 186, 0.9) 0%, rgba(42, 127, 186, 0.95) 100%), url('../images/service-bg.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 60px 0 40px;
    text-align: center;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb i {
    margin: 0 10px;
    font-size: 12px;
    opacity: 0.6;
}

.breadcrumb span {
    color: var(--white);
    opacity: 1;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}

.service-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.category-btn {
    padding: 8px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-btn:hover, .category-btn.active {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: var(--box-shadow);
}

/* 服务筛选 */
.service-filters {
    padding: 30px 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--gray);
}

.filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 14px;
    color: var(--text-light);
    white-space: nowrap;
}

.filter-select {
    padding: 8px 15px;
    border: 1px solid var(--gray);
    border-radius: 5px;
    background-color: var(--white);
    font-family: var(--font-main);
    font-size: 14px;
    min-width: 180px;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 127, 186, 0.2);
}

.filter-search {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.filter-search input {
    width: 100%;
    padding: 8px 15px 8px 40px;
    border: 1px solid var(--gray);
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 14px;
    transition: var(--transition);
}

.filter-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 127, 186, 0.2);
}

.filter-search button {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}

/* 服务列表 */
.services-list {
    padding: 60px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

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

.service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.service-badge.new {
    background-color: var(--secondary-color);
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42, 127, 186, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.quick-view {
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid var(--white);
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.quick-view:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.service-content {
    padding: 20px;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.service-category {
    font-size: 14px;
    color: var(--primary-color);
    background-color: rgba(42, 127, 186, 0.1);
    padding: 4px 10px;
    border-radius: 50px;
}

.service-rating {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-light);
}

.service-rating i {
    color: #ffc107;
    margin-right: 5px;
}

.service-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.service-desc {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-footer {
    display: flex;
    justify-content: space-between;
 
}

.service-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.service-cta {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.service-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.page-nav, .page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.page-nav {
    background-color: var(--bg-light);
}

.page-nav:hover:not(.disabled) {
    background-color: var(--primary-color);
    color: var(--white);
}

.page-nav.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-number {
    border: 1px solid var(--gray);
}

.page-number:hover, .page-number.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 服务优势 */
.service-advantages {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.advantage-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(42, 127, 186, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--primary-color);
    transition: var(--transition);
}

.advantage-card:hover .advantage-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.advantage-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.advantage-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* 底部CTA */
.service-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(42, 127, 186, 0.9) 0%, rgba(42, 127, 186, 0.95) 100%), url('../images/dna-pattern.png') center/cover;
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.cta-btn i {
    margin-right: 10px;
}

.cta-btn.primary {
    background-color: var(--white);
    color: var(--primary-color);
}

.cta-btn.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-btn.secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-search {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 30px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .service-advantages, .services-list {
        padding: 40px 0;
    }
    
    .service-cta {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .service-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .service-categories::-webkit-scrollbar {
        display: none;
    }
    
    .category-btn {
        white-space: nowrap;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}


/* 全局样式 */
body {
  font-family: 'Noto Sans SC', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部样式 */
.services-header {
  background: linear-gradient(135deg, #1a5f7a, #159895);
  color: white;
  padding: 140px 0;
  text-align: center;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb i {
  margin: 0 10px;
  font-size: 12px;
  opacity: 0.7;
}

.breadcrumb span {
  color: white;
  font-weight: 500;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

.service-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.category-btn {
  padding: 8px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-btn:hover, .category-btn.active {
  background-color: white;
  color: #1a5f7a;
  font-weight: 500;
}

/* 筛选区域 */
.service-filters {
  background-color: white;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-size: 14px;
  color: #666;
}

.filter-select {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  font-family: inherit;
  min-width: 150px;
}

.filter-search {
  position: relative;
  flex-grow: 1;
  max-width: 300px;
}

.filter-search input {
  width: 100%;
  padding: 8px 15px 8px 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.filter-search button {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
}

/* 服务列表 */
.services-list {
  padding: 40px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.service-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
  height: 120px;
  background-color: #f0f7f9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.service-icon i {
  font-size: 48px;
  color: #1a5f7a;
}

.service-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff4757;
  color: white;
  padding: 3px 10px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 500;
}

.service-badge.new {
  background-color: #2ed573;
}

.service-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.service-category {
  font-size: 12px;
  background-color: #e3f2fd;
  color: #1a5f7a;
  padding: 3px 10px;
  border-radius: 30px;
}

.service-rating {
  font-size: 13px;
  color: #ffa502;
}

.service-rating i {
  margin-right: 3px;
}

.service-title {
  font-size: 1.2rem;
  margin: 10px 0;
  color: #333;
}

.service-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-footer {
  display: flex;flex-direction: column-reverse;
  justify-content: space-between;

  margin-top: auto;
}

.service-cta {
  background-color: #1a5f7a;
  color: white;
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s;
}

.service-cta:hover {
  background-color: #159895;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

.page-nav, .page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-decoration: none;
  color: #666;
  transition: all 0.3s;
}

.page-nav.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-number {
  border: 1px solid #ddd;
}

.page-number.active {
  background-color: #1a5f7a;
  color: white;
  border-color: #1a5f7a;
}

.page-number:hover:not(.active) {
  background-color: #f0f7f9;
}

/* 服务优势 */
.service-advantages {
  padding: 60px 0;
  background-color: #f0f7f9;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #1a5f7a;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.advantage-card {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

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

.advantage-icon {
  width: 70px;
  height: 70px;
  background-color: #e3f2fd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.advantage-icon i {
  font-size: 28px;
  color: #1a5f7a;
}

.advantage-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #333;
}

.advantage-card p {
  font-size: 14px;
  color: #666;
}

/* CTA区域 */
.service-cta {
  background: linear-gradient(135deg, #1a5f7a, #159895);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.cta-btn i {
  font-size: 14px;
}

.cta-btn.primary {
  background-color: white;
  color: #1a5f7a;
}

.cta-btn.primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.cta-btn.secondary {
  background-color: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-btn.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }
  
  .filter-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-search {
    max-width: 100%;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
}