/* 通用响应式布局和商业审美样式 - 咨询行业标准 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", "SimHei", "黑体", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    max-height: 50px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

nav ul li {
    position: relative;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 15px;
    transition: color 0.3s;
}

nav a:hover {
    color: #3498db;
}

nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #34495e;
    min-width: 200px;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    flex-direction: column;
    gap: 0;
}

nav ul li:hover > ul {
    display: flex;
}

nav ul ul a {
    display: block;
    padding: 10px 20px;
}

/* Banner区域 */
.banner {
    background-color: #34495e;
    padding: 40px 0;
    text-align: center;
    color: #fff;
}

/* 主内容区 */
main {
    background-color: #fff;
    padding: 40px 0;
    min-height: 600px;
}

.main-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-top: 30px;
}

/* 侧边栏导航 */
aside {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
}

.sidebar-nav h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav a {
    color: #555;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: #3498db;
    color: #fff;
}

/* 内容区域 */
article {
    background-color: #fff;
}

.breadcrumb {
    padding: 15px 0;
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.content-section {
    padding: 30px 0;
}

.content-section h1 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.content-section h2 {
    font-size: 20px;
    color: #34495e;
    margin: 30px 0 15px;
}

.content-section h3 {
    font-size: 18px;
    color: #34495e;
    margin: 25px 0 12px;
}

.content-section p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
}

.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.content-section table th {
    background-color: #1F497D;
    color: #fff;
    padding: 12px;
    text-align: center;
    font-weight: bold;
}

.content-section table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.content-section table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.content-section ul {
    margin: 15px 0;
    padding-left: 30px;
}

.content-section li {
    margin-bottom: 8px;
    line-height: 1.8;
}

/* 客户列表样式 */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.client-item {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.client-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.client-item span {
    display: block;
    font-size: 16px;
    color: #2c3e50;
    font-weight: bold;
}

/* 证书列表样式 */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.cert-item {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.cert-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

/* 首页特色样式 */
.home-section {
    padding: 60px 0;
    background-color: #fff;
}

.home-section h2 {
    font-size: 28px;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #3498db;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.solution-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.solution-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.solution-item h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.solution-item ul {
    list-style: none;
    padding: 0;
}

.solution-item li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.solution-item li:last-child {
    border-bottom: none;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.case-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.case-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.case-item:hover img {
    transform: scale(1.05);
}

.process-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.process-tab {
    padding: 15px 25px;
    background-color: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    transition: all 0.3s;
}

.process-tab.active {
    background-color: #3498db;
    color: #fff;
}

.process-content {
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 5px;
    min-height: 200px;
}

.process-content > div {
    display: none;
}

.process-content > div.active {
    display: block;
}

/* 页脚 */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 13px;
}

/* 联系信息样式 */
.contact-info {
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin: 30px 0;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.8;
}

.map-container {
    width: 100%;
    height: 350px;
    margin: 30px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    aside {
        order: 2;
    }
    
    article {
        order: 1;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    nav ul ul {
        position: static;
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .content-section table {
        font-size: 12px;
    }
    
    .content-section table th,
    .content-section table td {
        padding: 8px 5px;
    }
    
    .client-grid,
    .cert-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .solution-grid {
        grid-template-columns: 1fr;
    }
    
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-tabs {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .content-section h1 {
        font-size: 20px;
    }
    
    .content-section h2 {
        font-size: 18px;
    }
    
    .content-section h3 {
        font-size: 16px;
    }
    
    .content-section table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .client-grid,
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .case-grid {
        grid-template-columns: 1fr;
    }
    
    .home-section h2 {
        font-size: 24px;
    }
}
