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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo a {
    color: #333;
    text-decoration: none;
}

.trademark {
    font-size: 16px;
    vertical-align: super;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #007bff;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Banner样式 */
.banner {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
    color: #fff;
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: animateGrid 20s linear infinite;
}

@keyframes animateGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 10px); }
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.banner p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.btn {
    display: inline-block;
    background-color: #fff;
    color: #007bff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn:hover {
    background-color: #007bff;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

.service-item {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
}

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

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

.service-item p {
    color: #666;
    line-height: 1.6;
}

/* FAQ样式 */
.faq {
    padding: 100px 0;
    background-color: #f5f5f5;
}

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

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* 关于闫宝龙样式 */
.about {
    padding: 100px 0;
    background-color: #fff;
}

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

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 0 0 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

/* 联系方式样式 */
.contact {
    padding: 100px 0;
    background-color: #f5f5f5;
}

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

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

.contact-info {
    flex: 0 0 300px;
}

.contact-info p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

.wechat-qr {
    margin-top: 30px;
    text-align: center;
}

.wechat-qr img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.contact-form {
    flex: 1;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    font-size: 20px;
    margin-bottom: 30px;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.contact-form button {
    background-color: #007bff;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background-color: #0069d9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* 底部样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 30px;
}

.links {
    margin-bottom: 40px;
}

.links h3 {
    font-size: 18px;
    margin-bottom: 30px;
    color: #fff;
}

.links-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    list-style: none;
}

.links-list a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.links-list a:hover {
    color: #007bff;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #ccc;
}

.copyright a {
    color: #007bff;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        padding: 20px 0;
    }
    
    .nav-menu {
        margin-top: 20px;
    }
    
    .nav-menu li {
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .banner h1 {
        font-size: 36px;
    }
    
    .banner p {
        font-size: 18px;
    }
    
    .services h2,
    .faq h2,
    .about h2,
    .contact h2 {
        font-size: 28px;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu li {
        margin: 10px;
    }
    
    .banner h1 {
        font-size: 28px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        padding: 30px;
    }
    
    .links-list {
        grid-template-columns: repeat(2, 1fr);
    }
}