/* styles/main.css */

 /* 重置样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: "Microsoft YaHei", Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f5f5f5;
        }
        
        /* 布局样式 */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* 头部样式 */
        .page-header {
            background-color: #fff;
            padding: 20px 0;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }
        
        .page-header h1 {
            text-align: center;
            font-size: 24px;
            color: #006600;
            margin-bottom: 10px;
        }
        
        .logo {
            text-align: center;
            margin-bottom: 15px;
        }
        
        .logo img {
            max-width: 100%;
            height: auto;
        }
        
        /* 导航样式 */
        .exhibition-nav {
            background-color: #006600;
            color: #fff;
            padding: 10px 15px;
            margin-bottom: 20px;
            border-radius: 4px;
        }
        
        .exhibition-nav h2 {
            font-size: 18px;
            margin: 0;
        }
        
        /* 展览网格样式 - 每行7个 */
        .exhibition-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 15px;
            margin-bottom: 30px;
        }
        
        .exhibition-card {
            background: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
            transition: transform 0.3s, box-shadow 0.3s;
            display: flex;
            flex-direction: column;
        }
        
        .exhibition-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.15);
        }
        
        .exhibition-img {
            width: 100%;
            height: 140px;
            object-fit: cover;
        }
        
        .exhibition-content {
            padding: 12px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .exhibition-title {
            font-size: 14px;
            font-weight: bold;
            margin-bottom: 6px;
            color: #006600;
            line-height: 1.3;
        }
        
        .exhibition-date, .exhibition-location {
            font-size: 12px;
            margin-bottom: 4px;
            color: #666;
            line-height: 1.3;
        }
        
        .ticket-btn {
            display: block;
            width: 100%;
            padding: 6px;
            background-color: #ff6600;
            color: white;
            text-align: center;
            text-decoration: none;
            border-radius: 4px;
            font-weight: bold;
            margin-top: 8px;
            transition: background-color 0.3s;
            font-size: 12px;
        }
        
        .ticket-btn:hover {
            background-color: #e55c00;
        }
        
        /* 内容区域样式 */
        .content-section {
            background: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }
        
        .section-title {
            font-size: 20px;
            color: #006600;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #eee;
        }
		
    
   /* 友情链接 */
        .friendship-links-section {
            background-color: #fff;
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 40px;
            box-shadow: 0 2px 15px rgba(0,0,0,0.05);
        }
        
        .links-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .link-item {
            display: inline-block;
            background-color: #f8f9fa;
            padding: 10px 20px;
            border-radius: 4px;
            text-decoration: none;
            color: #3498db;
            transition: background-color 0.3s;
        }
        
        .link-item:hover {
            background-color: #e9ecef;
        }
		
        
        /* 页脚样式 */
        .page-footer {
            background-color: #333;
            color: #fff;
            padding: 30px 0 15px;
            margin-top: 30px;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 20px;
        }
        
        .footer-column h3 {
            font-size: 16px;
            margin-bottom: 15px;
            color: #fff;
        }
        
        .footer-column ul {
            list-style: none;
        }
        
        .footer-column li {
            margin-bottom: 8px;
        }
        
        .footer-column a {
            color: #ccc;
            text-decoration: none;
            transition: color 0.3s;
            font-size: 14px;
        }
        
        .footer-column a:hover {
            color: #fff;
        }
        
        .footer-bottom {
            text-align: center;
            padding-top: 15px;
            border-top: 1px solid #444;
            font-size: 14px;
            color: #aaa;
            line-height: 1.6;
        }
        
        .footer-bottom a {
            color: #aaa;
            text-decoration: none;
        }
        
        .footer-bottom a:hover {
            color: #fff;
        }
		

        
        /* 响应式调整 */
        @media (max-width: 1200px) {
            .exhibition-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }
        
        @media (max-width: 992px) {
            .exhibition-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .footer-content {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 768px) {
            .exhibition-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .page-header h1 {
                font-size: 20px;
            }
        }
        
        @media (max-width: 480px) {
            .exhibition-grid {
                grid-template-columns: 1fr;
            }
            
            .page-header h1 {
                font-size: 18px;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
            }
        }


/* 搜索框样式 */
#exhibition-search-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    padding: 15px;
    text-align: center;
}

#city-search-input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
    flex: 1;
    max-width: 400px;
    font-size: 14px;
}

#city-search-btn {
    padding: 10px 20px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    min-width: 80px;
}

#city-search-btn:hover {
    background-color: #40a9ff;
}

/* 收藏按钮样式 */
.favorite-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 15px;
    background-color: #ff4d4f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.favorite-btn:hover {
    background-color: #ff7875;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 77, 79, 0.3);
}

/* 展会卡片样式 */
.exhibition-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    padding: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

.exhibition-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exhibition-card-highlight {
    background-color: #ffff00 !important;
    border: 3px solid #ff0000 !important;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.7) !important;
    transform: scale(1.05) !important;
}

/* 返回顶部按钮样式 - 优化字号 */
.back-to-top {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    background-color: #1890ff;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    overflow: hidden;
    font-size: 12px; /* 添加基础字号 */
}

.back-to-top:hover {
    background-color: #40a9ff;
    transform: translateY(-50%) scale(1.05); /* 减小放大比例 */
    box-shadow: 0 6px 16px rgba(24, 144, 255, 0.5);
    width: 110px; /* 稍微减小宽度 */
    border-radius: 25px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    transition: all 0.3s ease;
    width: 20px; /* 固定图标大小 */
    height: 20px;
}

.back-to-top span {
    position: absolute;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px); /* 减小初始偏移 */
    transition: all 0.3s ease;
    font-size: 11px; /* 减小字号 */
    font-weight: 500; /* 中等字重，更清晰 */
    margin-top: 18px; /* 调整文字位置 */
    letter-spacing: 0.5px; /* 轻微字间距，提高可读性 */
}

.back-to-top:hover span {
    opacity: 1;
    transform: translateX(0);
}

.back-to-top:hover svg {
    transform: translateY(-4px); /* 减小图标上移距离 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    .back-to-top {
        right: 20px;
        width: 44px;
        height: 44px;
    }
    
    .back-to-top:hover {
        width: 44px;
        border-radius: 50%;
        transform: translateY(-50%); /* 移动端保持居中，不放大 */
    }
    
    .back-to-top:hover span {
        display: none; /* 移动端悬停时不显示文字 */
    }
    
    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* 收藏成功提示样式 */
.favorite-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #52c41a;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.favorite-toast.show {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #exhibition-search-container {
        flex-direction: column;
    }
    
    #city-search-input,
    #city-search-btn,
    .favorite-btn {
        min-width: 100%;
    }
    
    .exhibition-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .back-to-top {
        right: 20px;
    }
}