/* 整体背景图片 */
.part2 {
    margin: 5%;
    padding: 5%;
    padding-top: 0;
    padding-bottom: 10%;
    border-radius: 20px;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    z-index: 1;
}

/* 添加半透明遮罩层，确保文字可读性 */
.part2::before {
    background-image: url('/images/part2-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(5px);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.part2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* 自定义按钮样式 - 银灰色平行四边形 */
.custom-btn {
    background: linear-gradient(90deg, #a0aec0 0%, #cbd5e0 100%);
    color: #2d3748;
    transition: all 0.3s ease;
    border-radius: 0;
    transform: skew(-20deg);
    display: inline-block;
    border: none;
    position: relative;
    overflow: hidden;
}

.custom-btn span {
    display: inline-block;
    transform: skew(20deg);
}

.custom-btn:hover, .custom-btn:active, .custom-btn:focus {
    background: linear-gradient(90deg, #ae050e 0%, #d6454d 100%);
    color: white;
    transform: skew(-20deg) translateY(-2px);
    box-shadow: 0 10px 20px rgba(174, 5, 14, 0.3);
}

/* 右侧节点样式 - 竖线连接 */
.node-container {
    position: relative;
}

.node-line {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #d1d5db; /* 银灰色竖线 */
    border-radius: 10px;
}

.node-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-right: 2rem; /* 调整内边距，为竖线留出空间 */
    transition: all 0.3s ease;
    cursor: pointer;
}

.node-item:last-child {
    margin-bottom: 0;
}

.node-circle {
    position: absolute;
    right: -7px; /* 调整位置，使圆形位于竖线上 */
    top: 1.5rem;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: white;
    border: 3px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.node-item.active .node-circle {
    border-color: #ae050e; /* 红色高亮 */
    background-color: #ae050e; /* 红色高亮 */
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(174, 5, 14, 0.2);
}

.node-circle-inner {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ae050e; /* 红色 */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.node-item.active .node-circle-inner {
    opacity: 1;
    background: white;
}

/* 节点内容区域样式 - 白色背景，无边框 */
.node-content {
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none; /* 去掉边框 */
}

.node-item.active .node-content {
    color: white;
    border:2px solid white;
}

.node-item.active .node-content h3,
.node-item.active  {
    border-color: #d1d5db;
}

/* 内容区域 */
.title-container {
    position: relative;
    z-index: 20;
}

.description-container {
    position: relative;
    z-index: 20;
}

/* 主内容区域样式 - 移除背景色 */
.main-content-area {
    background: transparent;
}

/* 右侧节点区域样式 - 移除背景色 */
.node-area {
    background: transparent;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .title-description-grid {
        grid-template-columns: 1fr !important;
    }
    
    .node-area {
        border-left: none;
    }
}

@media (max-width: 768px) {
    .node-container {
        margin-top: 2rem;
    }
    
    .node-line {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        height: 3px;
        width: 80%;
        top: auto;
    }
    
    .node-item {
        padding-right: 0;
        padding-top: 2.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .node-circle {
        left: 50%;
        right: auto;
        top: 0;
        transform: translateX(-50%);
    }
    
    .node-content {
        text-align: center;
    }
    
    /* 小屏幕下按钮恢复为正常形状 */
    .custom-btn {
        transform: none;
    }
    
    .custom-btn span {
        transform: none;
    }
    
    .custom-btn:hover, .custom-btn:active, .custom-btn:focus {
        transform: translateY(-2px);
    }
}

/*part3样式*/
/* 自定义背景和颜色 */
.custom-bg {
    background-image: url('/images/part3-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.map-placeholder {
    /*background-image: url('/images/part3-yfzx.png');*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 更新背景颜色为半透明 */
.red-bg {
    background-color: rgba(214, 40, 40, 0);
}

.white-bg {
    background-color: rgba(255, 255, 255, 0);
}

/* 动画延迟 */
.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1.0s;
}

.delay-6 {
    animation-delay: 1.2s;
}

.delay-7 {
    animation-delay: 1.4s;
}

.delay-8 {
    animation-delay: 1.6s;
}

/* 跳动动画关键帧 */
@keyframes bounceThenStop {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.bounce-stop {
    animation: bounceThenStop 1.5s ease;
    animation-fill-mode: forwards;
}

/* 国家标签样式 */
.country-tag {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .mobile-stack {
        flex-direction: column;
    }
    
    .mobile-full-width {
        width: 100%;
    }
    
    .mobile-margin {
        margin-top: 0;
        margin-bottom: 0;
    }
}


.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.double-layer-card {
    position: relative;
}

.card-top-layer {
    position: relative;
    z-index: 2;
}

.card-bottom-layer {
    position: absolute;
    height: 100%;
    width: 100%;
    right: -10px;
    z-index: 1;
}

.circle-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border:#ae050e solid 2px;
}

.circle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(184, 15, 15, 0.3);
}

.grid-container {
    height: auto;
}