/* 公共CSS样式 */
/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 标题样式 */
h1 {
    font-size: 25px;
    color: #2c3e50;
}

h2 {
    font-size: 20px;
    color: #34495e;
}

h3 {
    font-size: 18px;
    color: #34495e;
}

/* 正文样式 */
p {
    font-size: 18px;
    line-height: 1.8;
}

/* 链接样式 */
a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background-color: #2980b9;
    text-decoration: none;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 响应式工具类 */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* 边距工具类 */
.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* 响应式图片 */
.img-responsive {
    width: 100%;
    height: auto;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 头部样式 */
header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
}

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

.logo {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 10px;
}

.logo-img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

nav {
    background-color: #34495e;
    overflow: hidden;
}

nav ul {
    list-style-type: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav ul li {
    float: left;
}

nav ul li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 16px;
}

nav ul li a:hover {
    background-color: #1a252f;
}

/* 响应式导航 */
.nav-toggle {
    display: none;
    background-color: #34495e;
    color: white;
    padding: 14px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-size: 16px;
}

/* 主要内容区域 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 横幅区域 */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 50px;
}

.banner h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.banner p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* 服务项目区域 */
.services {
    padding: 50px 0;
}

.service-item {
    text-align: center;
    margin-bottom: 40px;
}

.service-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* 关于我们区域 */
.about {
    padding: 50px 0;
    background-color: #f8f9fa;
}

/* 联系我们区域 */
.contact {
    padding: 50px 0;
    background-color: #e9ecef;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* WeChat QR码样式 */
.wechat-qr {
    text-align: center;
    margin-top: 10px;
}

.wechat-qr img {
    display: block;
    margin: 0 auto 10px auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

/* 移动端样式 */
@media (max-width: 768px) {
    h1 {
        font-size: 20px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    h3 {
        font-size: 16px;
    }
    
    p {
        font-size: 16px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .banner h1 {
        font-size: 28px;
    }
    
    .banner p {
        font-size: 18px;
    }
    
    nav ul {
        display: none;
        width: 100%;
    }
    
    nav ul.show {
        display: block;
    }
    
    nav ul li {
        float: none;
        border-bottom: 1px solid #5a6c7d;
    }
    
    nav ul li a {
        padding: 15px 20px;
    }
    
    .nav-toggle {
        display: block;
    }
}