/* DNA300 基因检测站群 - 样式表 */

/* ========== 基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

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

/* ========== 头部 ========== */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav li {
    margin: 0 15px;
}

.nav a {
    color: #666;
    padding: 10px 0;
}

.nav a:hover {
    color: #007bff;
    text-decoration: none;
}

.phone a {
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
}

.phone a:hover {
    background: #0056b3;
    text-decoration: none;
}

/* ========== 面包屑 ========== */
.breadcrumb {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    font-size: 13px;
    color: #666;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #007bff;
}

/* ========== 主内容 ========== */
.main {
    padding: 30px 0;
}

.section {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.section h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

/* ========== 页面标题 ========== */
.page-header,
.product-header,
.org-header {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: #fff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-header h1,
.product-header h1,
.org-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.subtitle {
    opacity: 0.9;
}

.product-meta {
    margin-top: 15px;
}

.product-meta span {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 13px;
}

/* ========== 产品网格 ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
}

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

.product-card h3 {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
}

.product-card .price {
    color: #ff6600;
    font-weight: bold;
    font-size: 16px;
}

.product-card .info {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

/* ========== 分类网格 ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.category-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.category-card ul {
    list-style: none;
    font-size: 13px;
    color: #666;
}

.category-card li {
    padding: 3px 0;
}

/* ========== 机构列表 ========== */
.org-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.org-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
}

.org-item h3,
.org-item h4 {
    font-size: 15px;
    margin-bottom: 8px;
}

.org-item .address,
.org-item .tel {
    font-size: 13px;
    color: #666;
}

/* ========== 文章列表 ========== */
.article-list {
    list-style: none;
}

.article-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
}

.article-list .date {
    color: #999;
    font-size: 12px;
}

/* ========== 价格表格 ========== */
.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th,
.price-table td {
    padding: 12px 15px;
    border: 1px solid #eee;
    text-align: left;
}

.price-table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* ========== 检测流程 ========== */
.process-steps {
    display: flex;
    justify-content: space-between;
}

.step {
    flex: 1;
    text-align: center;
    padding: 20px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 20px;
}

.step-num {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 10px;
}

.step h4 {
    font-size: 15px;
    margin-bottom: 8px;
}

.step p {
    font-size: 13px;
    color: #666;
}

/* ========== FAQ ========== */
.faq-list {
    list-style: none;
}

.faq-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.faq-item .question {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
}

.faq-item .answer {
    color: #666;
    font-size: 14px;
}

/* ========== 适合人群 ========== */
.suitable-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.suitable-list li {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
}

.suitable-list strong {
    display: block;
    margin-bottom: 5px;
    color: #007bff;
}

/* ========== 侧边栏 ========== */
.page-product {
    display: flex;
    gap: 30px;
}

.main-content {
    flex: 1;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.widget h3 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.contact-widget {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: #fff;
}

.contact-widget h3 {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.contact-widget .phone {
    font-size: 24px;
    font-weight: bold;
}

.contact-widget .phone a {
    color: #fff;
}

.related-products ul {
    list-style: none;
}

.related-products li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.related-products .price {
    color: #ff6600;
    font-size: 13px;
}

/* ========== 联系信息 ========== */
.contact-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-item h4 {
    margin-bottom: 10px;
    color: #666;
}

.contact-item .phone {
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
}

/* ========== 资质列表 ========== */
.qualification-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.qualification-list li {
    padding: 10px;
    background: #f0fff4;
    border-radius: 4px;
    color: #28a745;
}

/* ========== 更多链接 ========== */
.more-link {
    margin-top: 15px;
    text-align: right;
}

/* ========== 底部 ========== */
.footer {
    background: #2c3e50;
    color: #aaa;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    padding: 5px 0;
}

.footer-col a {
    color: #aaa;
}

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

.footer-bottom {
    border-top: 1px solid #3d5166;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-product {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px;
    }
    
    .nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .product-grid,
    .category-grid,
    .org-list {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .step:not(:last-child)::after {
        content: '↓';
        position: static;
        display: block;
        margin: 10px 0;
    }
    
    .contact-box {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
}
