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

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

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

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    background-color: #1e88e5;
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #1a237e;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1e88e5;
}

p {
    margin-bottom: 16px;
    font-size: 16px;
}

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

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

.logo img {
    width: 180px;
    height: auto;
}

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

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #1e88e5;
}

.contact-info a {
    color: #1e88e5;
    font-weight: 600;
    text-decoration: none;
    font-size: 18px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #1a237e 0%, #1e88e5 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 关于我们区域 */
.about {
    padding: 100px 0;
    text-align: center;
}

.about p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    margin: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e88e5;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1.1rem;
    color: #666;
}

/* 企业信息区域 */
.company-info {
    background-color: white;
    padding: 100px 0;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.info-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.company-details {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.company-details table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.company-details td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

.company-details td:first-child {
    font-weight: 500;
    color: #666;
    width: 30%;
}

/* 服务项目区域 */
.services {
    padding: 100px 0;
    text-align: center;
}

.services p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
    margin-bottom: 50px;
}

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

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.service-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

/* 企业优势区域 */
.advantages {
    background-color: #f8f9fa;
    padding: 100px 0;
    text-align: center;
}

.advantages p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
    margin-bottom: 50px;
}

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

.advantage-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    width: 100px;
    height: 100px;
    background-color: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.advantage-icon img {
    width: 50px;
    height: 50px;
}

.advantage-number {
    font-size: 2rem;
    font-weight: bold;
    color: #1e88e5;
    margin-top: 15px;
}

.advantage-text {
    color: #666;
    font-size: 1.1rem;
}

/* 客户评价区域 */
.testimonials {
    padding: 100px 0;
    text-align: center;
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 5rem;
    color: #e3f2fd;
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.5;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 30px;
    color: #666;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    font-size: 1rem;
}

.author-company {
    color: #666;
    font-size: 0.9rem;
}

/* CTA区域 */
.cta {
    background: linear-gradient(135deg, #1a237e 0%, #1e88e5 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

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

.contact p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
    margin-bottom: 50px;
    text-align: center;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-icon {
    margin-right: 15px;
    color: #1e88e5;
}

.info-icon img {
    width: 24px;
    height: 24px;
}

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

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

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

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

/* 页脚样式 */
footer {
    background-color: #1a237e;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-logo,
.footer-links,
.footer-contact,
.footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    flex: 0 0 auto;
}

.footer-logo img {
    width: 150px;
    margin-bottom: 15px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.footer-contact li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

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

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.social-icons img {
    width: 20px;
    height: 20px;
}

.wechat-qr {
    margin-top: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.wechat-qr img {
    width: 100%;
    max-width: 120px;
    height: auto;
    border-radius: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal span,
.footer-legal a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.police-record {
    display: flex;
    align-items: center;
    gap: 8px;
}

.police-record img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #1e88e5;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #1565c0;
    transform: translateY(-3px);
}

.back-to-top img {
    width: 20px;
    height: 20px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .service-cards,
    .advantage-cards,
    .testimonial-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .footer-content > div {
        flex-basis: calc(50% - 15px);
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .contact-info {
        display: none;
    }
    
    .stats {
        flex-direction: column;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .service-cards,
    .advantage-cards,
    .testimonial-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .footer-content > div {
        flex-basis: 100%;
        margin-bottom: 30px;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}