﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.contact-info {
    text-align: right;
}

.contact-info p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
}

/* 导航样式 */
nav {
    background: #2c3e50;
    padding: 0.5rem 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

nav a:hover {
    background: #34495e;
}

/* 主要内容区域 */
.main-content {
    min-height: 60vh;
    padding: 2rem 0;
}

.page-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 2rem;
}

/* 城市列表样式 */
.city-section {
    margin-bottom: 3rem;
}

.city-title {
    background: #3498db;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.institution-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.institution-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.institution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.institution-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.institution-card a {
    color: #2980b9;
    text-decoration: none;
    font-weight: bold;
}

.institution-card a:hover {
    color: #1c5980;
    text-decoration: underline;
}

.badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* 机构详情页样式 */
.institution-detail {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.info-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.info-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    margin-bottom: 0.5rem;
}

.info-label {
    font-weight: bold;
    color: #7f8c8d;
}

.business-scope {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 0.5rem;
}

.scope-category {
    margin-bottom: 1rem;
}

.scope-category h4 {
    color: #2980b9;
    margin-bottom: 0.5rem;
}

/* 鉴定人表格样式 */
.personnel-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.personnel-table th,
.personnel-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.personnel-table th {
    background: #34495e;
    color: white;
    font-weight: bold;
}

.personnel-table tr:hover {
    background: #f8f9fa;
}

/* 页脚样式 */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-info {
    flex: 1;
    text-align: left;
}

.footer-links {
    flex: 1;
    text-align: right;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    margin-left: 1rem;
}

.footer-links a:hover {
    color: #3498db;
}

.copyright {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #34495e;
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        text-align: center;
        margin-top: 1rem;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav li {
        margin: 0.2rem 0;
    }
    
    .institution-list {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info, .footer-links {
        text-align: center;
        margin: 0.5rem 0;
    }
    
    .personnel-table {
        font-size: 0.9rem;
    }
    
    .personnel-table th,
    .personnel-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .city-title {
        font-size: 1.2rem;
    }
    
    .institution-detail {
        padding: 1rem;
    }
    
    .personnel-table {
        font-size: 0.8rem;
    }
}