/* 业务体系页面样式 */

/* 四列网格布局 */
.business-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 产品卡片样式 */
.product-card {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.8);
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-icon {
    margin-bottom: 20px;
}

.card-icon img {
    width: 100px;
    height: 100px;
}

.product-card .card-title {
    font-size: 20px;
    color: #2a2e2e;
    margin: 0 0 8px 0;
    text-align: center;
}

.product-card .card-subtitle {
    font-size: 14px;
    color: #64605f;
    margin: 0;
    text-align: center;
}

/* 768px响应式设计 */
@media (max-width: 768px) {
    /* 改为单列布局 */
    .business-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* 修改卡片样式为左右布局 */
    .product-card {
        padding: 20px;
    }
    
    .card-content {
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .card-icon {
        margin-bottom: 0;
        margin-right: 20px;
        flex-shrink: 0;
    }
    
    .card-icon img {
        width: 80px;
        height: 80px;
    }
    
    /* 创建一个容器包裹标题和副标题，使其垂直排列 */
    .card-text-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-card .card-title {
        text-align: left;
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .product-card .card-subtitle {
        text-align: left;
        font-size: 14px;
        margin: 0;
    }
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fefefe;
    padding: 65px 80px 50px 64px;
    border: 1px solid #888;
    width: 1044px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.modal-close {
    position: absolute;
    top: 13px;
    right: 27px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.modal-close:hover,
.modal-close:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

/* 左右布局样式 */
.modal-layout {
    display: flex;
    gap: 40px;
    width: 100%;
    min-width: 0;
}

.modal-left {
    display: flex;
    align-items: flex-start;
}

.modal-logo img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 8px;
}

.modal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.modal-name {
    font-size: 30px;
    color: #2A2E2E;
    letter-spacing: 0;
    margin-bottom: 9px;
}

.subtitle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid #E9ECF0;
}

.modal-subtitle {
    font-size: 20px;
    color: #949696;
    letter-spacing: 0;
    line-height: 36px;
}

.modal-website {
    font-size: 16px;
    color: #0055dd;
}

.modal-website:hover {
    color: #0056b3;
}

.modal-desc {
    font-size: 16px;
    color: #5F6464;
    letter-spacing: 0;
    line-height: 25px;
    word-wrap: break-word;
    word-break: break-all;
}

/* 弹窗响应式设计 */
@media (max-width: 1200px) {
    .modal-content {
        width: 90vw;
        padding: 50px 60px 40px 50px;
    }
    
    .modal-layout {
        gap: 30px;
    }
    
    .modal-logo img {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 992px) {
    .modal-content {
        width: 95vw;
        padding: 40px 40px 35px 40px;
    }
    
    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 26px;
    }
    
    .modal-name {
        font-size: 28px;
    }
    
    .modal-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        padding: 50px 25px 30px 25px;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 24px;
    }
    
    .modal-layout {
        gap: 25px;
    }
    
    .modal-left {
        align-items: flex-start;
    }
    
    .modal-logo img {
        width: 120px;
        height: 120px;
    }
    
    .modal-right {
        text-align: left;
    }
    
    .modal-name {
        font-size: 26px;
    }
    
    .subtitle-container {
        flex-direction: row;
        align-items: center;
    }
    
    .modal-desc {
        font-size: 15px;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 45px 20px 25px 20px;
    }
    
    .modal-logo img {
        width: 100px;
        height: 100px;
    }
    
    .modal-name {
        font-size: 24px;
    }
    
    .modal-subtitle {
        font-size: 16px;
    }
    
    .modal-desc {
        font-size: 14px;
    }
    
    .modal-layout {
        gap: 20px;
    }
}
