/* 移动端样式 */
/* 基础样式 */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: #2C8CDB;
}

/* 容器样式 */
.container-fluid {
    width: 100%;
    padding: 0;
}

.content-inner {
    padding: 0 15px;
}

/* 头部导航 */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #2C8CDB;
    color: #fff;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mobile-header .content-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.mobile-header .logo {
    font-size: 18px;
    font-weight: bold;
}

.mobile-header .logo a {
    color: #fff;
    display: flex;
    align-items: center;
}

.mobile-header .logo i {
    margin-right: 5px;
}

.mobile-header .menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    color: #ffffff;
}

.mobile-header .menu-toggle i {
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
    font-size: 24px;
}

/* 菜单图标备选样式 - 确保在字体图标加载失败时也能显示 */
.mobile-header .menu-toggle::before {
    content: '≡'; /* 使用Unicode字符作为备选菜单图标 */
    font-size: 28px;
    line-height: 1;
    font-weight: bold;
    color: #ffffff;
    position: absolute;
    opacity: 0; /* 默认隐藏，只有当字体图标加载失败时才会显示 */
}

/* 当字体图标加载失败时显示备选图标 */
.fa-bars:not(.fa-bars)::before, 
.fas:not(.fas) .fa-bars::before {
    display: none;
}

.fa-bars:not(.fa-bars) ~ .mobile-header .menu-toggle::before, 
.fas:not(.fas) .fa-bars ~ .mobile-header .menu-toggle::before {
    opacity: 1;
}

/* 侧边菜单 */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -80%;
    width: 80%;
    height: 100%;
    background-color: #fff;
    z-index: 200;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-sidebar.active {
    right: 0;
}

.sidebar-header {
    height: 50px;
    background-color: #2C8CDB;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.sidebar-logo {
    font-size: 18px;
    font-weight: bold;
}

.sidebar-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
}

.sidebar-menu {
    padding: 15px 0;
}

.sidebar-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu li {
    margin: 0;
    padding: 0;
}

.sidebar-menu li a {
    display: block;
    padding: 12px 15px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-menu li.active a {
    color: #2C8CDB;
    background-color: #f9f9f9;
    font-weight: bold;
}

/* 遮罩层 */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 150;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

/* 主体内容 */
.main-container {
    margin-top: 50px;
    padding-bottom: 60px;
    min-height: calc(100vh - 110px);
}

/* Banner区域 */
.banner-simple {
    background-color: #f8f8f8;
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
    margin-top: 50px;
}

.banner-text h2 {
    font-size: 20px;
    color: #2C8CDB;
    margin-bottom: 10px;
    margin-top: 0;
}

.banner-text p {
    font-size: 14px;
    color: #3A9CD9;
    margin: 0;
}

/* 底部导航栏 */
.mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #fff;
    border-top: 1px solid #eee;
    z-index: 100;
}

.tab-bar {
    display: flex;
    height: 100%;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #999;
    font-size: 12px;
}

.tab-item i {
    font-size: 18px;
    margin-bottom: 3px;
}

.tab-item.active {
    color: #2C8CDB;
}

/* 版权信息 */
.copyright {
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    color: #999;
    background-color: #f5f5f5;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    overflow: hidden;
}

.card-header {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fafafa;
}

.card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.card-body {
    padding: 15px;
}

/* 首页样式 */
.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #2C8CDB;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
    text-align: center;
}

.section-title:after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    margin-left: -30px;
    width: 60px;
    height: 2px;
    background-color: #2C8CDB;
}

.home-section {
    margin-bottom: 20px;
    padding-top: 15px;
}

/* 新闻列表样式 */
.news-list .news-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.news-list .news-item:last-child {
    border-bottom: none;
}

.news-list .news-item h3 {
    font-size: 16px;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.news-list .news-item h3 a {
    color: #333;
}

.news-list .news-item .news-date {
    color: #999;
    font-size: 12px;
    margin-bottom: 5px;
}

.news-list .news-item .news-desc {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    background-color: #f8f8f8;
    color: #333;
}

.btn-primary {
    background-color: #2C8CDB;
    color: #fff;
    border-color: #2C8CDB;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #2270b3;
    border-color: #2270b3;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-control {
    display: block;
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
}

textarea.form-control {
    height: auto;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination .page-item {
    margin: 0 3px;
}

.pagination .page-link {
    display: block;
    padding: 5px 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 3px;
}

.pagination .page-item.active .page-link {
    background-color: #2C8CDB;
    border-color: #2C8CDB;
    color: #fff;
}

/* 响应式图片 */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* 拍卖会列表 */
.auction-list .auction-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.auction-list .auction-item:last-child {
    border-bottom: none;
}

.auction-list .auction-item .auction-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.auction-list .auction-item .auction-info {
    color: #666;
    font-size: 13px;
    margin-bottom: 10px;
}

.auction-list .auction-item .auction-info span {
    margin-right: 15px;
}

.auction-list .auction-item .auction-info i {
    margin-right: 5px;
}

/* 鸽子列表 */
.pigeon-list .pigeon-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pigeon-list .pigeon-item:last-child {
    border-bottom: none;
}

.pigeon-list .pigeon-item .pigeon-image {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    background-color: #f5f5f5;
    border-radius: 3px;
    overflow: hidden;
}

.pigeon-list .pigeon-item .pigeon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pigeon-list .pigeon-item .pigeon-info {
    flex: 1;
}

.pigeon-list .pigeon-item .pigeon-info h3 {
    font-size: 16px;
    margin: 0 0 5px 0;
}

.pigeon-list .pigeon-item .pigeon-info p {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 13px;
}

.pigeon-list .pigeon-item .pigeon-info .pigeon-price {
    color: #e74c3c;
    font-weight: bold;
}

/* 备选菜单图标样式 */
.menu-icon-fallback {
    font-size: 28px;
    line-height: 1;
    font-weight: bold;
    color: #ffffff;
    margin-top: -2px;
}

/* 如果字体图标正常加载，则隐藏备选图标 */
.fas.fa-bars:not([style*="display: none"]) ~ .menu-icon-fallback {
    display: none;
} 