/* 内容展示部分 */
.content-section {
    padding: 60px 0;
    background-color: rgba(117, 9, 14);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #FFD700 !important;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #4a6fa5;
}

.company-intro {
    margin-bottom: 50px;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.company-intro h2 {
    margin-bottom: 20px;
    color: #4a6fa5;
}

.company-intro p {
    margin-bottom: 15px;
    text-align: justify;
}

.subsidiaries {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.subsidiaries-layout {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-column {
    display: flex;
}

.subsidiary-rect {
    width: 780px;
    height: 300px;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 45px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    padding: 15px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.subsidiary-rect.vertical {
    width: 400px;
    height: 620px;
}

.subsidiary-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(74, 111, 165, 0.85) 0%, 
        rgba(74, 111, 165, 0.6) 50%,
        rgba(165, 74, 74, 0.4) 100%
    );
    opacity: 0.6;
    transition: all 0.6s ease;
    border-radius: 45px;
    z-index: 1;
}

.subsidiary-content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transform: translateY(0);
    transition: all 0.6s ease;
}

.subsidiary-content h3 {
    color: white;
    font-size: 36px;
    margin: 0;
    font-weight: bold;
    transition: all 0.4s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.left-column .subsidiary-rect {
    opacity: 0;
    transform: translateX(-100px) scale(0.95);
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.left-column .subsidiary-rect:nth-child(1) {
    animation-delay: 0.2s;
}

.left-column .subsidiary-rect:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.right-column .subsidiary-rect {
    opacity: 0;
    transform: translateX(100px) scale(0.95);
    animation: slideInFromRight 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.subsidiary-rect.active {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(255, 255, 255, 0.4),
        0 0 60px rgba(74, 111, 165, 0.6);
    animation: subsidiaryPulse 2s infinite;
    z-index: 100;
}

.subsidiary-rect.vertical.active {
    transform: translateY(-10px) scale(1.05) rotateX(2deg);
}

.subsidiary-rect.active .subsidiary-overlay {
    opacity: 0.3;
    background: linear-gradient(
        135deg, 
        rgba(74, 111, 165, 0.3) 0%, 
        rgba(165, 74, 165, 0.2) 50%,
        rgba(165, 165, 74, 0.1) 100%
    );
}

.subsidiary-rect.active .subsidiary-content h3 {
    transform: scale(1.1);
    text-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 255, 255, 0.8);
    color: #fff;
}

@keyframes subsidiaryPulse {
    0% {
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.3),
            0 0 0 3px rgba(255, 255, 255, 0.4),
            0 0 60px rgba(74, 111, 165, 0.6);
    }
    50% {
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.4),
            0 0 0 4px rgba(255, 255, 255, 0.5),
            0 0 80px rgba(74, 111, 165, 0.8);
    }
    100% {
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.3),
            0 0 0 3px rgba(255, 255, 255, 0.4),
            0 0 60px rgba(74, 111, 165, 0.6);
    }
}

.subsidiary-rect:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(255, 255, 255, 0.3);
}

.subsidiary-rect.vertical:hover {
    transform: translateY(-8px) scale(1.02) rotateX(1deg);
}

.subsidiary-rect:hover .subsidiary-overlay {
    opacity: 0.4;
}

.subsidiary-rect:hover .subsidiary-content h3 {
    transform: scale(1.05);
}

.subsidiary-rect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.8s ease;
    z-index: 1;
}

.subsidiary-rect:hover::before {
    left: 100%;
}

#fujiang-agent {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
    overflow: hidden;
}

#fujiang-agent::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.1), rgba(74, 111, 165, 0.05));
    opacity: 0;
    transition: opacity 0.6s ease;
    border-radius: 45px;
}

#fujiang-agent:hover::after {
    opacity: 1;
}

#tianke-xinghe {
    background: linear-gradient(135deg, #f0f8ff, #d1ecff);
    position: relative;
    overflow: hidden;
}

#tianke-xinghe::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.1), rgba(74, 111, 165, 0.05));
    opacity: 0;
    transition: opacity 0.6s ease;
    border-radius: 45px;
}

#tianke-xinghe:hover::after {
    opacity: 1;
}

#zhengyu-office {
    background: linear-gradient(135deg, #f0fff0, #d1ffd1);
    position: relative;
    overflow: hidden;
}

#zhengyu-office::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.1), rgba(74, 111, 165, 0.05));
    opacity: 0;
    transition: opacity 0.6s ease;
    border-radius: 45px;
}

#zhengyu-office:hover::after {
    opacity: 1;
}

.subsidiary {
    width: calc(33.33% - 20px);
    margin-bottom: 30px;
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.subsidiary:hover {
    transform: translateY(-5px);
}

.subsidiary h3 {
    color: #4a6fa5;
    margin-bottom: 15px;
    font-size: 20px;
}

.subsidiary p {
    color: #666;
    font-size: 14px;
    text-align: justify;
}

.subsidiary-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 15px;
}

.subsidiary-details.active {
    max-height: 500px;
}

.subsidiary-details ul {
    margin: 10px 0;
    padding-left: 20px;
}

.subsidiary-details li {
    margin-bottom: 8px;
}

.toggle-details {
    background-color: #4a6fa5;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.toggle-details:hover {
    background-color: #3a5a8a;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .subsidiary {
        width: 100%;
    }

    .subsidiaries-layout {
        flex-direction: column;
        align-items: center;
    }
    
    .right-column {
        margin-top: 20px;
    }
    
    .subsidiary-rect.vertical {
        width: 200px;
        height: 100px;
    }

    .subsidiary-rect {
        width: 100%;
        max-width: 400px;
    }
    
    .subsidiary-rect h3 {
        font-size: 24px;
    }
    
    .left-column .subsidiary-rect,
    .right-column .subsidiary-rect {
        animation: slideInFromBottom 0.8s ease-out forwards;
    }
    
    .left-column .subsidiary-rect:nth-child(1) {
        animation-delay: 0.2s;
    }
    
    .left-column .subsidiary-rect:nth-child(2) {
        animation-delay: 0.4s;
    }
    
    .right-column .subsidiary-rect {
        animation-delay: 0.6s;
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}