/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1190px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页眉 */
header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    height: 50px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    align-items: center;
}

nav li {
    position: relative;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #33ab55;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #33ab55;
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: #33ab55;
    font-weight: 600;
}

nav a.active::after {
    width: 100%;
}

/* 页面标题 */
.page-title {
    background: linear-gradient(135deg, #33ab55 0%, #21853c 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-title p {
    font-size: 18px;
    opacity: 0.9;
}

/* 内容区块 */
.content-section {
    padding: 40px 0;
}

.content-section:nth-child(even) {
    background: #f9f9f9;
}

/* 图片模块 */
.image-section {
    width: 100%;
    max-width: 1190px;
    margin: 0 auto;
    padding: 0 20px;
}

.image-section img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 20px 0;
}

/* 卡片样式 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card h3 {
    color: #33ab55;
    margin-bottom: 15px;
    font-size: 24px;
}

.card p {
    color: #666;
    line-height: 1.8;
}

/* 列表样式 */
.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    padding: 15px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid #eee;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #33ab55;
    font-weight: bold;
    font-size: 20px;
}

/* 联系我们 */
.contact-section {
    background: #F8F8F8;
    padding: 60px 0;
    margin-top: 40px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    background: white;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.contact-item h3 {
    font-size: 20px;
    color: #33ab55;
    margin-bottom: 10px;
}

.contact-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contact-info {
    padding: 20px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #33ab55;
}

.contact-item {
    margin-bottom: 15px;
    font-size: 16px;
}

.contact-item strong {
    color: #666;
    margin-right: 10px;
}

.contact-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 页脚 */
footer {
    background: #f8f8f8;
    padding: 40px 0;
    margin-top: 0;
}

.footer-content {
    text-align: center;
    color: #666;
}

.footer-nav {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-nav a {
    text-decoration: none;
    color: #666;
}

.footer-nav a:hover {
    color: #33ab55;
}

/* 悬浮按钮 */
.float-buttons {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #33ab55;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s;
    text-decoration: none;
    font-size: 12px;
    text-align: center;
}

.float-btn:hover {
    background: #21853c;
    transform: scale(1.1);
}

/* 悬浮电话按钮 */
.float-phone {
    position: fixed;
    right: 20px;
    bottom: 100px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #33ab55;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s;
    z-index: 999;
}

.float-phone:hover {
    background: #21853c;
    transform: scale(1.1);
}

/* 公司介绍页面 */
.about-content {
    max-width: 1190px;
    margin: 60px auto;
    padding: 0 20px;
}

.about-text {
    line-height: 1.8;
    color: #666;
    font-size: 16px;
    margin-bottom: 40px;
}

.about-text h2 {
    color: #33ab55;
    margin: 40px 0 20px;
    font-size: 28px;
    font-weight: 600;
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.about-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 联系我们页面 */
.contact-detail {
    max-width: 1190px;
    margin: 60px auto;
    padding: 0 20px;
}

.contact-info-box {
    background: #f8f8f8;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.contact-info-box h2 {
    color: #33ab55;
    margin-bottom: 30px;
    font-size: 28px;
}

.contact-info-item {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.contact-info-item h3 {
    color: #33ab55;
    margin-bottom: 10px;
    font-size: 18px;
}

.contact-info-item p {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

.contact-map-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
    }
    
    .logo {
        height: 40px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 12px;
    }
    
    nav a {
        font-size: 14px;
        padding: 6px 0;
    }
    
    nav a::after {
        height: 2px;
    }
    
    .page-title h1 {
        font-size: 28px;
    }
    
    .page-title p {
        font-size: 14px;
    }
    
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info h3 {
        font-size: 20px;
    }
    
    .contact-item {
        font-size: 14px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 20px;
    }
    
    .card h3 {
        font-size: 20px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        gap: 10px 15px;
        margin-bottom: 15px;
    }
    
    .footer-nav a {
        font-size: 14px;
    }
    
    footer p {
        font-size: 13px;
        line-height: 1.8;
    }
    
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 11px;
    }
    
    .float-buttons {
        right: 15px;
        bottom: 80px;
    }
    
    .float-phone {
        width: 50px;
        height: 50px;
        font-size: 24px;
        right: 15px;
        bottom: 80px;
    }
    
    .about-content {
        padding: 0 10px;
    }
    
    .about-text p {
        font-size: 14px;
    }
    
    .contact-info-box {
        padding: 20px;
    }
    
    .contact-info-item h3 {
        font-size: 16px;
    }
    
    .contact-info-item p {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .contact-item {
        padding: 25px 15px;
    }
    
    .contact-icon {
        font-size: 40px;
        margin-bottom: 10px;
    }
    
    .contact-item h3 {
        font-size: 18px;
    }
    
    .contact-item p {
        font-size: 14px;
    }
}
