* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding-bottom: 20px;
}

/* 主标题 */
.main-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    padding: 16px;
    background-color: #fff;
    margin-bottom: 0;
    color: #000;
}

/* 地图容器 */
.map-container {
    width: 100%;
    height: 300px;
    background-color: #1a3a5c;
    margin-bottom: 0;
    position: relative;
}

#mapChart {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 内容区域 */
.content-section {
    padding: 16px;
    background-color: #fff;
    margin-bottom: 0;
}

.description-text {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

/* 上链企业部分 */
.enterprise-section {
    padding: 16px;
    background-color: #fff;
    margin-top: 0;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
    color: #000;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-card {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), transparent);
    padding: 16px;
    color: #fff;
}

.company-name {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    z-index: 10;
}

.product-description {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 8px;
    color: #fff;
    text-align: justify;
}

/* 企业简介弹窗 */
.enterprise-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.enterprise-modal-content {
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.enterprise-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.enterprise-modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.enterprise-modal-close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
    user-select: none;
}

.enterprise-modal-close:hover {
    color: #333;
}

.enterprise-modal-body {
    padding: 20px;
    max-height: calc(80vh - 70px);
    overflow-y: auto;
}

.enterprise-introduction {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    text-align: justify;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 375px) {
    .main-title {
        font-size: 20px;
    }
    
    .map-container {
        height: 250px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .enterprise-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .enterprise-modal-header {
        padding: 12px 16px;
    }
    
    .enterprise-modal-title {
        font-size: 16px;
    }
    
    .enterprise-modal-body {
        padding: 16px;
    }
    
    .enterprise-introduction {
        font-size: 13px;
    }
}

/* 企业列表弹窗 */
.enterprise-list-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    animation: fadeIn 0.3s ease;
}

.enterprise-list-content {
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.enterprise-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.enterprise-list-header h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.enterprise-list-close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
    user-select: none;
}

.enterprise-list-close:hover {
    color: #333;
}

.enterprise-list-body {
    padding: 10px 0;
    max-height: calc(80vh - 70px);
    overflow-y: auto;
}

.enterprise-list-item {
    padding: 16px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

.enterprise-list-item:last-child {
    border-bottom: none;
}

.enterprise-list-item:active {
    background-color: #f5f5f5;
}

.enterprise-list-name {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}
