/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f5f5;
}

/* Banner样式 */
.banner {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.banner img {
    width: 100%;
    max-width: 1920px;
    height: auto;
}

/* 主容器样式 */
.container {
    width: 1200px;
    margin: 40px auto;
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 左侧导航样式 - 匹配其他页面 */
.leftNav {
    width: 210px;
    border-radius: 12px;
    margin-right: 32px;
    padding: 32px 0 32px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-title {
    font-size: 14px;
    color: #999;
    font-weight: normal;
    margin-left: 32px;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.leftNav ul {
    border: none;
    padding-left: 0;
    width: 100%;
}

.leftNav li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 0 0 32px;
    position: relative;
    font-size: 16px;
    color: #999;
    line-height: 1.5;
    height: 38px;
    cursor: pointer;
    transition: color 0.2s;
    background: transparent;
}

.leftNav li .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e5e5;
    margin-right: 14px;
    transition: background 0.2s;
}

.leftNav li.active {
    color: #e60012;
    font-weight: bold;
    background: transparent;
}

.leftNav li.active .dot {
    background: #e60012;
}

.leftNav li.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: #e60012;
    border-radius: 2px;
}

.leftNav a {
    text-decoration: none;
    color: inherit;
    font-size: 16px;
    display: block;
    flex: 1;
}

.nav-divider {
    width: 80%;
    height: 1px;
    background: #f2f2f2;
    margin: 24px auto 0 auto;
    border: none;
}

.leftNav li:not(.active):hover {
    color: #e60012;
}

.leftNav li:not(.active):hover .dot {
    background: #e60012;
}

/* 右侧内容样式 */
.rightContent {
    flex: 1;
    padding-left: 30px;
    margin-left: 242px; /* 210px width + 32px right margin */
}

.card-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px dashed #eee;
}

.card-section:last-child {
    border-bottom: none;
}

.card-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* 服务内容盒子样式 */
.service-content-box {
    display: flex;
    margin-bottom: 30px;
}

.service-icon-box {
    width: 180px;
    flex-shrink: 0;
    margin-right: 20px;
    text-align: center;
}

.service-icon-box img {
    max-width: 130px;
    max-height: 130px;
    margin: 0 auto 20px;
    display: block;
    transition: transform 0.3s ease;
}

.service-icon-box h1 {
    font-size: 18px;
    color: #f87267;
    margin: 0;
    text-align: center;
}

.service-text {
    flex: 1;
    border-radius: 8px;
    padding: 20px;
}

.service-text .li {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.service-text .li:last-child {
    margin-bottom: 0;
}

.service-text .li .l {
    margin-right: 10px;
    padding-top: 2px;
}

.service-text .li .l img {
    width: 20px;
    height: 20px;
}

.service-text .li .r {
    flex: 1;
}

.service-text .li .r h3 {
    display: inline;
    font-size: 16px;
    font-weight: bold;
    color: #f87267;
    margin: 0;
    margin-right: 5px;
}

.service-text .li .r p {
    display: inline;
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.service-subtitle {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
}

.service-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .contentBox {
        flex-direction: column;
    }
    
    .leftNav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .rightContent {
        padding-left: 0;
    }
    
    .service-content-box {
        flex-direction: column;
    }
    
    .service-icon-box {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .service-text .li .r h3,
    .service-text .li .r p {
        display: block;
    }
}

/* 右侧内容区自定义补充 */
.orange-box-design {
    background-image: linear-gradient(-90deg, #fb8a20, #f53b2c);
    border-radius: 10px;
    padding: 28px 24px;
    margin: 18px 0 32px 0;
    display: flex;
    align-items: flex-start;
}

.orange-title{
    font-size: 18px;
    color: #fff;
    margin-bottom: 16px;
}

.orange-icon {
    width: 22px;
    height: 22px;
    margin-right: 18px;
    flex-shrink: 0;
}

.orange-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.8;
    flex: 1;
}

.imgMain{
    width: 100%;
    height: 294px;
}

.imgMain img{
    width: 100%;
    height: 100%;
}

/* 军旅规划服务特有样式 */
.service-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-right: 30px;
    flex-shrink: 0;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-content {
    flex: 1;
}

.service-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.service-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* Footer 样式 */
footer {
    background-color: #232429;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-top {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

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

.footer-nav h4,
.footer-contact h4,
.footer-social h4 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: normal;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.footer-border {
    width: 1px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0 20px;
}

.footer-contact p {
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 10px;
}

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

.social-icon {
    cursor: pointer;
}

.social-icon img {
    width: 30px;
}

#qr-popup {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 100;
}

#qr-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 40px;
}

.footer-app {
    text-align: center;
}

.footer-app img {
    width: 120px;
    margin-bottom: 10px;
}

.footer-app p {
    font-size: 14px;
    margin: 0;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer-social {
    position: relative;
}

@media (max-width: 900px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-border {
        width: 80%;
        height: 1px;
        margin: 20px auto;
    }
    .footer-app {
        margin-top: 20px;
    }
}

/* 添加鼠标经过card-section时图片放大的效果 */
.card-section:hover .service-icon-box img {
    transform: scale(1.1);
}
