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

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #c41e3a;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 50px;
}

.section-more {
    text-align: center;
    margin-top: 40px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background-color: #c41e3a;
    color: #fff;
}

.btn-primary:hover {
    background-color: #a31830;
}

.btn-secondary {
    background-color: #1e3a5f;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #152a45;
}

.btn-white {
    background-color: #fff;
    color: #c41e3a;
}

.btn-white:hover {
    background-color: #f5f5f5;
}

.btn-wechat {
    background-color: #07c160;
    color: #fff;
}

.btn-outline {
    border: 2px solid #c41e3a;
    color: #c41e3a;
    background: transparent;
}

.btn-outline:hover {
    background-color: #c41e3a;
    color: #fff;
}

/* 顶部导航栏 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h1 {
    font-size: 24px;
    color: #c41e3a;
    font-weight: bold;
}

.nav a {
    margin: 0 15px;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
}

.nav a:hover {
    color: #c41e3a;
}

.header-phone {
    display: flex;
    align-items: center;
    background-color: #c41e3a;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
}

.phone-icon {
    font-size: 18px;
    margin-right: 5px;
}

.phone-num {
    font-weight: bold;
}

.mobile-nav {
    display: none;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #1e3a5f;
    color: #fff;
}

.menu-btn {
    cursor: pointer;
}

.mobile-phone {
    color: #fff;
    font-weight: bold;
}

/* 大横幅区域 */
.banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.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"><rect fill="rgba(255,255,255,0.05)" width="10" height="10"/><rect fill="rgba(255,255,255,0.05)" x="20" y="20" width="10" height="10"/><rect fill="rgba(255,255,255,0.05)" x="40" y="40" width="10" height="10"/><rect fill="rgba(255,255,255,0.05)" x="60" y="60" width="10" height="10"/><rect fill="rgba(255,255,255,0.05)" x="80" y="80" width="10" height="10"/></svg>');
    opacity: 0.3;
}

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

.banner h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.banner .subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.banner-phone {
    font-size: 24px;
    margin-bottom: 30px;
}

.banner-phone strong {
    font-size: 36px;
    color: #ffd700;
}

.banner-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 服务项目 */
.service-section {
    background-color: #f8f9fa;
}

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

.service-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    color: #1e3a5f;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

.service-link {
    color: #c41e3a;
    font-weight: bold;
}

/* 关于我们 */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}

.about-image {
    flex: 1;
}

.about-img-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #1e3a5f, #2d5a87);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #fff;
}

/* 为什么选择我们 */
.choose-section {
    background-color: #f8f9fa;
}

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

.advantage-card {
    background-color: #fff;
    padding: 40px 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.advantage-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 20px;
    color: #1e3a5f;
    margin-bottom: 10px;
}

.advantage-en {
    color: #c41e3a;
    font-size: 14px;
    margin-bottom: 15px;
}

.advantage-card p {
    color: #666;
    font-size: 14px;
}

/* 数据展示 */
.stats-section {
    background: linear-gradient(135deg, #c41e3a 0%, #8b1528 100%);
    color: #fff;
    padding: 60px 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-num {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* 南京各区服务 */
.district-section {
    background-color: #fff;
}

.district-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.district-item {
    background-color: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    color: #1e3a5f;
    font-weight: bold;
    transition: all 0.3s;
}

.district-item:hover {
    background-color: #c41e3a;
    color: #fff;
}

/* 案例分享 */
.cases-section {
    background-color: #f8f9fa;
}

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

.case-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-img {
    height: 150px;
    background: linear-gradient(135deg, #1e3a5f, #2d5a87);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.case-content {
    padding: 25px;
}

.case-content h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.case-info {
    color: #c41e3a;
    font-size: 13px;
    margin-bottom: 10px;
}

.case-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.case-link {
    color: #1e3a5f;
    font-weight: bold;
    font-size: 14px;
}

/* 新闻中心 */
.news-section {
    background-color: #fff;
}

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

.news-card {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
}

.news-date {
    color: #c41e3a;
    font-size: 14px;
    margin-bottom: 15px;
}

.news-card h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.news-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.news-link {
    color: #1e3a5f;
    font-weight: bold;
    font-size: 14px;
}

/* 热线横幅 */
.hotline-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff;
    padding: 40px 0;
}

.hotline-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hotline-text h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.hotline-number {
    font-size: 36px;
    color: #ffd700;
    font-weight: bold;
}

.hotline-btns {
    display: flex;
    gap: 15px;
}

/* 联系我们 */
.contact-section {
    background-color: #f8f9fa;
}

.contact-grid {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
}

.contact-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item strong {
    color: #1e3a5f;
}

.contact-form {
    flex: 1;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
}

.contact-form h3 {
    font-size: 22px;
    color: #1e3a5f;
    margin-bottom: 30px;
}

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

.contact-form textarea {
    resize: none;
}

/* 页脚 */
.footer {
    background-color: #1e3a5f;
    color: #fff;
    padding: 50px 0 20px;
}

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

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ffd700;
}

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

.footer-col a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-col li {
    color: #ccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: #ccc;
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* 浮动热线按钮 */
.float-hotline {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
}

.float-phone,
.float-wechat {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #c41e3a;
    color: #fff;
    border-radius: 30px;
    margin-bottom: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

.float-wechat {
    background-color: #07c160;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.float-icon {
    font-size: 24px;
    margin-right: 10px;
}

.float-text {
    font-size: 13px;
    line-height: 1.3;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .district-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        display: none;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    .banner h2 {
        font-size: 28px;
    }
    
    .banner .subtitle {
        font-size: 16px;
    }
    
    .banner-phone strong {
        font-size: 28px;
    }
    
    .banner-btns {
        flex-direction: column;
        gap: 10px;
    }
    
    .service-grid,
    .advantage-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-grid,
    .news-grid,
    .district-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-img-placeholder {
        height: 250px;
    }
    
    .stats-grid {
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 1 1 45%;
    }
    
    .contact-grid {
        flex-direction: column;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .hotline-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .float-hotline {
        right: 10px;
        bottom: 80px;
    }
    
    .float-phone,
    .float-wechat {
        padding: 10px 15px;
    }
    
    .float-text {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .cases-grid,
    .news-grid,
    .district-grid {
        grid-template-columns: 1fr;
    }
}
