/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #000;
    overflow-x: hidden;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
}

/* 头部样式 */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 24px;
    color: #007bff;
}

/* 横排导航栏样式 */
nav {
    width: 100%;
    max-width: 800px;
}

nav ul {
    display: flex;
    list-style: none;
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
}

nav ul li {
    margin-left: 25px;
    margin-right: 5px;
    white-space: nowrap;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
    position: relative;
}

nav ul li a:hover {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}

nav ul li a:hover {
    color: #007bff;
}

/* 横幅样式 */
.banner {
    background: transparent;
    color: #0f0;
    padding: 100px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.banner h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 关于我们样式 */
.about {
    padding: 80px 0;
    background-color: white;
}

.about h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

.about-content {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
}

.placeholder-image {
    background-color: #e9ecef;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6c757d;
    border-radius: 8px;
}

/* 服务项目样式 */
.services {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.services h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.service-item p {
    font-size: 16px;
    color: #666;
}

/* 项目展示样式 */
.projects {
    padding: 80px 0;
    background-color: white;
}

.projects h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.project-item .placeholder-image {
    height: 200px;
    border-radius: 0;
}

.project-item h3 {
    font-size: 18px;
    margin: 20px;
    color: #333;
}

.project-item p {
    font-size: 14px;
    margin: 0 20px 20px;
    color: #666;
}

/* 联系我们样式 */
.contact {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

.contact-content {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 16px;
}

.contact-form {
    flex: 2;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

/* 页脚样式 */
footer {
    background-color: #343a40;
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-info p {
    font-size: 14px;
    color: #adb5bd;
}

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

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    text-decoration: none;
    color: #adb5bd;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-social h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #495057;
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #007bff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #495057;
    font-size: 14px;
    color: #adb5bd;
}

/* 响应式设计 */
@media (max-width: 992px) {
    /* 中等屏幕 - 平板 */
    .banner h2 {
        font-size: 36px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 小屏幕 - 大屏手机 */
    header .container {
        flex-direction: column;
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    /* 移动设备上的横排导航 */
    nav {
        width: 100%;
        max-width: 100%;
    }
    
    nav ul {
        justify-content: center;
        gap: 10px;
    }
    
    nav ul li {
        margin-left: 10px;
        margin-right: 10px;
        margin-bottom: 5px;
    }
    
    nav ul li a {
        padding: 6px 10px;
        font-size: 14px;
    }    
    .banner {
        padding: 80px 0;
    }
    
    .banner h2 {
        font-size: 28px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
        width: 100%;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    /* 超小屏幕 - 手机 */
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .banner {
        padding: 60px 0;
    }
    
    .banner h2 {
        font-size: 24px;
    }
    
    .about, .services, .projects, .contact {
        padding: 60px 0;
    }
    
    .about h2, .services h2, .projects h2, .contact h2 {
        font-size: 28px;
    }
    
    .service-item, .project-item, .contact-info, .contact-form {
        padding: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
}

/* 移动菜单样式 - 修改为始终横排显示 */
@media (max-width: 768px) {
    .nav-toggle {
        display: none !important; /* 隐藏切换按钮，因为我们使用横排导航 */
    }
    
    nav {
        position: relative;
        width: 100%;
    }
    
    nav ul {
        display: flex;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        background: transparent;
        box-shadow: none;
        padding: 10px 0;
        margin: 0;
        gap: 5px;
    }
    
    nav ul li {
        margin: 5px;
    }
    
    nav ul li a {
        font-size: 13px;
        padding: 5px 8px;
    }
    
    /* 确保导航栏在移动设备上有足够空间 */
    header .container {
        flex-direction: column;
        align-items: center;
    }
    
    .logo {
        margin-right: 0;
        text-align: center;
    }
}