/* 基础变量 */
: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;
}

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

.breadcrumb {
    display: flex;
    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;    text-align: center;
}

.page-subtitle {
    font-size: 18px;
    opacity: 0.9;
    max-width: 800px;
}

/* 主要内容区域 */
.content-main {
    padding-bottom: 60px;
}

.content-wrapper {
    display: flex;
    gap: 30px;
}

.content-article {
    flex: 1;
}

.content-sidebar {
    width: 300px;
}

/* 内容区块样式 */
.content-section {
    margin-bottom: 50px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.section-title {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
}

.title-icon {
    margin-right: 10px;
    font-size: 18px;
}

.section-content {
    padding: 25px;
}

.highlight-box {
    display: flex;
    background-color: rgba(42, 127, 186, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.highlight-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
}

.highlight-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.highlight-content ul {
    list-style: none;
}

.highlight-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.highlight-content li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* 标签页样式 */
.service-tabs {
    margin-top: 20px;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--gray);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    transition: var(--transition);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 表格样式 */
.service-table {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray);
    border-radius: 5px;
    overflow: hidden;
}

.table-row {
    display: flex;
}

.table-header {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.table-cell {
    flex: 1;
    padding: 12px 15px;
    border-right: 1px solid var(--gray);
}

.table-row:not(.table-header) {
    border-top: 1px solid var(--gray);
}

.table-row:not(.table-header):nth-child(even) {
    background-color: var(--bg-light);
}

.table-row .table-cell:last-child {
    border-right: none;
}

/* 技术卡片 */
.tech-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.tech-card {
    display: flex;
    border: 1px solid var(--gray);
    border-radius: 5px;
    overflow: hidden;
}

.tech-image {
    width: 150px;
}

.tech-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-content {
    flex: 1;
    padding: 15px;
}

.tech-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.tech-content ul {
    list-style: none;
}

.tech-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14px;
}

.tech-content li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--primary-color);
}

/* 样本类型 */
.sample-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sample-card {
    border: 1px solid var(--gray);
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

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

.sample-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(42, 127, 186, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
}

.sample-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.sample-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.sample-card ul {
    list-style: none;
    text-align: left;
}

.sample-card li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14px;
}

.sample-card li::before {
    content: '\f111';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 6px;
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--primary-color);
}

.notice-box {
    border: 1px solid #ffcc00;
    background-color: rgba(255, 204, 0, 0.05);
    border-radius: 5px;
    padding: 15px;
}

.notice-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #e6a700;
}

.notice-header i {
    margin-right: 10px;
    font-size: 20px;
}

.notice-header h3 {
    font-size: 18px;
}

.notice-content p {
    margin-bottom: 8px;
    font-size: 14px;
}

/* 常见问题 */
.faq-accordion {
    border: 1px solid var(--gray);
    border-radius: 5px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid var(--gray);
}

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

.faq-question {
    width: 100%;
    padding: 15px 20px;
    background-color: var(--bg-light);
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(42, 127, 186, 0.05);
}

.faq-question i {
    transition: var(--transition);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 15px 0;
    font-size: 15px;
}

/* 侧边栏 */
.sidebar-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    overflow: hidden;
}

.sidebar-title {
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 18px;
    display: flex;
    align-items: center;
}

.sidebar-title i {
    margin-right: 10px;
}

.sidebar-content {
    padding: 20px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    margin-top: 15px;
}

.sidebar-btn i {
    margin-right: 8px;
}

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

.download-list {
    list-style: none;
}

.download-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--gray);
}

.download-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.download-list a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.download-list i {
    margin-right: 10px;
    font-size: 18px;
    color: var(--primary-color);
}

.download-list span {
    flex: 1;
}

.download-list small {
    color: var(--text-light);
    font-size: 12px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-list li:last-child {
    margin-bottom: 0;
}

.contact-list i {
    width: 30px;
    height: 30px;
    background-color: rgba(42, 127, 186, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
}

.related-services {
    list-style: none;
}

.related-services li {
    margin-bottom: 12px;
}

.related-services li:last-child {
    margin-bottom: 0;
}

.related-services a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.related-services a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.related-services i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 12px;
}

/* 服务流程 */
.process-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 40px;
    gap: 20px;
}

.process-step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    position: relative;
    padding: 0 15px;
}

.process-step::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    opacity: 0.5;
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 15px;
}

.step-icon {
    width: 70px;
    height: 70px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: var(--box-shadow);
    color: var(--primary-color);
    font-size: 24px;
}

.step-title {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.step-desc {
    font-size: 14px;
    color: var(--text-light);
}

/* CTA区域 */
.cta-section {
    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-title {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-text {
    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: 15px 30px;
    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) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .content-sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .sidebar-card {
        margin-bottom: 0;
    }
    
    .process-step::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 30px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .service-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .table-row {
        display: inline-flex;
        min-width: 100%;
    }
    
    .table-cell {
        min-width: 150px;
    }
    
    .tech-card {
        flex-direction: column;
    }
    
    .tech-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 576px) {
    .content-header {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 18px;
        padding: 15px 20px;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
    
    .process-step {
        min-width: 100%;
        margin-bottom: 30px;
    }
    
    .process-step:last-child {
        margin-bottom: 0;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-text {
        font-size: 16px;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}
/* 细胞学检测内容专用样式 - 不影响其他CSS */
.content-section {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.content-section hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
  margin: 30px 0;
}

.content-section h2 {
  color: #2c3e50;
  font-size: 1.8em;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  position: relative;
  padding-bottom: 8px;
}

.content-section h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #9b59b6);
  border-radius: 3px;
}

.content-section h3 {
  color: #34495e;
  font-size: 1.4em;
  margin-top: 1.2em;
  margin-bottom: 0.6em;
}

.content-section p {
  margin-bottom: 1.2em;
  text-align: justify;
}

.content-section ul, .content-section ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.content-section li {
  margin-bottom: 0.6em;
  position: relative;
}

.content-section ul li:before {

  color: #3498db;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.content-section ol {
  counter-reset: item;
}

.content-section ol li {
  counter-increment: item;
}

.content-section ol li:before {

  color: #3498db;
  font-weight: bold;
  display: inline-block;
  width: 1.5em;
  margin-left: -1.5em;
}

.content-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.content-section table th {
  background-color: #3498db;
  color: white;
  font-weight: 600;
  padding: 12px 15px;
  text-align: left;
}

.content-section table td {
  padding: 10px 15px;
  border-bottom: 1px solid #e0e0e0;
}

.content-section table tr:nth-child(even) {
  background-color: #f2f9ff;
}

.content-section table tr:hover {
  background-color: #e8f4fc;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .content-section {
    padding: 15px;
  }
  
  .content-section h2 {
    font-size: 1.5em;
  }
  
  .content-section h3 {
    font-size: 1.2em;
  }
  
  .content-section table {
    display: block;
    overflow-x: auto;
  }
}

/* 动画效果 */
.content-section {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


pre {
  /* 容器样式 */
  background: #1e1e1e;
  border-radius: 8px;
  padding: 20px;
  border-left: 4px solid #569cd6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow-x: auto;
  font-size: 15px;
  line-height: 1.5;
  margin: 1.5em 0;
  
  /* 滚动条样式 */
  scrollbar-width: thin;
  scrollbar-color: #3a3a3a #1e1e1e;
}

pre::-webkit-scrollbar {
  height: 8px;
}

pre::-webkit-scrollbar-track {
  background: #1e1e1e;
}

pre::-webkit-scrollbar-thumb {
  background-color: #3a3a3a;
  border-radius: 4px;
}

code {
  /* 代码文本样式 */
  font-family: 'Fira Code', 'Consolas', monospace;
  color: #dcdcdc;
  display: block;
  tab-size: 4;
}

/* Python语法高亮 */
.keyword { color: #569cd6; }        /* import, def, return */
.function { color: #dcdcaa; }       /* metabolic_flux_analysis */
.comment { color: #6a9955; }        /* 注释 */
.string { color: #ce9178; }         /* 字符串 */
.bracket { color: #ffd700; }        /* 括号 */
.operator { color: #d4d4d4; }       /* = , . */
.number { color: #b5cea8; }         /* 数字 */
.punctuation { color: #d4d4d4; }    /* 标点 */