/* 企业库页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-back {
    flex: 1;
}

.back-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #007bff;
}

.back-link i {
    margin-right: 8px;
    font-size: 16px;
}

.nav-title {
    flex: 2;
    text-align: center;
}

.nav-title h1 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.nav-title p {
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
}

.nav-search {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.search-box {
    position: relative;
    max-width: 200px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-box input {
    width: 100%;
    padding: 8px 12px 8px 35px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #007bff;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
}

/* 卡片网格布局 */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 20px;
}

/* 地标卡片样式 */
.landmark-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.landmark-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* 卡片头部 */
.card-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 15px;
}

.card-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.english-name {
    font-size: 14px;
    color: #7f8c8d;
    font-style: italic;
    font-weight: 500;
}

/* 位置标签容器 */
.location-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

/* 省信息样式 */
.province-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #e74c3c;
    font-weight: 500;
    background: rgba(231, 76, 60, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
    width: fit-content;
}

.province-info i {
    font-size: 12px;
    color: #e74c3c;
}

/* 县市名信息样式 */
.county-city-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #3498db;
    font-weight: 500;
    background: rgba(52, 152, 219, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
    width: fit-content;
}

.county-city-info i {
    font-size: 12px;
    color: #3498db;
}

/* 卡片内容 */
.card-content {
    margin-bottom: 20px;
}

.company-info p,
.contact-info p,
.exhibition-info p,
.product-info p {
    margin-bottom: 8px;
    line-height: 1.5;
}

.company-info strong,
.exhibition-info strong {
    color: #2c3e50;
}

.english-text {
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
    margin-top: 2px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: #007bff;
    width: 16px;
}

/* 卡片底部 */
.card-footer {
    text-align: center;
}

.contact-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .nav-back,
    .nav-title,
    .nav-search {
        flex: none;
        width: 100%;
        text-align: center;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    .landmark-card {
        padding: 15px;
    }
    
    .card-header h3 {
        font-size: 16px;
    }
    
    .english-name {
        font-size: 12px;
    }
    
    .company-info p,
    .contact-info p,
    .exhibition-info p,
    .product-info p {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .contact-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* 430px宽屏适配 */
@media (max-width: 430px) {
    .landmark-card {
        padding: 12px;
    }
    
    .card-header h3 {
        font-size: 14px;
    }
    
    .english-name {
        font-size: 11px;
    }
    
    .company-info p,
    .contact-info p,
    .exhibition-info p,
    .product-info p {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .contact-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 320px) {
    .landmark-card {
        padding: 10px;
    }
    
    .card-header h3 {
        font-size: 13px;
    }
    
    .english-name {
        font-size: 10px;
    }
    
    .company-info p,
    .contact-info p,
    .exhibition-info p,
    .product-info p {
        font-size: 11px;
        margin-bottom: 3px;
    }
    
    .contact-btn {
        padding: 5px 10px;
        font-size: 10px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landmark-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* 为不同卡片添加延迟动画 */
.landmark-card:nth-child(1) { animation-delay: 0.1s; }
.landmark-card:nth-child(2) { animation-delay: 0.2s; }
.landmark-card:nth-child(3) { animation-delay: 0.3s; }
.landmark-card:nth-child(4) { animation-delay: 0.4s; }
.landmark-card:nth-child(5) { animation-delay: 0.5s; }
.landmark-card:nth-child(6) { animation-delay: 0.6s; }
.landmark-card:nth-child(7) { animation-delay: 0.7s; }
.landmark-card:nth-child(8) { animation-delay: 0.8s; }
.landmark-card:nth-child(9) { animation-delay: 0.9s; }
.landmark-card:nth-child(10) { animation-delay: 1.0s; }
.landmark-card:nth-child(11) { animation-delay: 1.1s; }
.landmark-card:nth-child(12) { animation-delay: 1.2s; }
.landmark-card:nth-child(13) { animation-delay: 1.3s; }
.landmark-card:nth-child(14) { animation-delay: 1.4s; }
.landmark-card:nth-child(15) { animation-delay: 1.5s; }
.landmark-card:nth-child(16) { animation-delay: 1.6s; }
.landmark-card:nth-child(17) { animation-delay: 1.7s; }
.landmark-card:nth-child(18) { animation-delay: 1.8s; }

/* 底部导航栏样式 */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #eee;
    background-color: #fff;
    position: sticky;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    font-size: 10px;
}

.bottom-nav .nav-item i {
    font-size: 20px;
    margin-bottom: 3px;
}

.bottom-nav .nav-item.active {
    color: #007bff;
}