/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    overflow-x: hidden;
}

/* 顶部导航 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 8px;
    margin: 10px;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
    max-width: 100%;
}

.header-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

/* 饵料页面头部布局 */
.header-top {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.header-top .back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
    z-index: 1;
}

.header-top .back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.header-top .header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    z-index: 0;
}

/* 主要内容区域 */
.main-content {
    padding: 16px;
    padding-bottom: 80px; /* 为底部导航留出空间 */
    min-height: calc(100vh - 140px);
}

/* 加载状态 */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #4facfe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #fff;
    font-size: 16px;
}

/* 加载更多状态 */
.loading-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #666;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

.loading-more .loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4facfe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 8px;
}

.loading-more .loading-text {
    font-size: 14px;
    color: #999;
}

/* 错误状态 */
.error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.error-message {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.retry-btn {
    background: #4facfe;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.retry-btn:hover {
    background: #3d8bfe;
}

/* 鱼类列表 */
.fish-list {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin: 10px;
}

.fish-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
}

.fish-item:last-child {
    border-bottom: none;
}

.fish-item:hover {
    background-color: #f8f9fa;
}

.fish-info {
    display: flex;
    align-items: center;
    width: 100%;
}

.fish-image {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    margin-right: 12px;
    background-color: #f0f0f0;
    object-fit: cover;
}

.fish-details {
    flex: 1;
}

.fish-name-location {
    margin-bottom: 4px;
}

.fish-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.location-name {
    font-size: 12px;
    color: #666;
}

.ranking-count {
    font-size: 13px;
    color: #ff6b35;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trophy-stats-inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: 16px;
    gap: 18px;
}

.trophy-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.trophy-icon {
    width: 18px;
    height: 18px;
}

.trophy-count {
    font-size: 12px;
    color: #333;
    font-weight: 600;
}

.ranking-number {
    width: 30px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-right: 12px;
}

.ranking-number.top3 {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #000;
    display: flex;
    padding: 8px 0;
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    cursor: pointer;
    transition: color 0.3s;
    color: #7A7E83;
}

.nav-item.active {
    color: #3cc51f;
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-label {
    font-size: 12px;
    font-weight: 500;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 16px 20px;
}

/* 地图列表 */
.map-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-item {
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
    font-weight: 500;
}

.map-item:hover {
    background: #e9ecef;
}

/* 鱼类列表弹窗 */
.fish-list-modal {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fish-item-modal {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.fish-item-modal:hover {
    background: #e9ecef;
}

.fish-item-modal .fish-image {
    width: 40px;
    height: 40px;
    margin-right: 12px;
}

.fish-item-modal .fish-name {
    font-size: 16px;
    margin-bottom: 0;
}

/* 空状态 */
.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-message {
    color: #fff;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .header {
        padding: 16px 12px;
    }
    
    .header-title {
        font-size: 20px;
    }
    
    .main-content {
        padding: 12px;
        padding-bottom: 80px;
    }
    
    .fish-item {
        padding: 12px;
    }
    
    .fish-image {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }
    
    .fish-name {
        font-size: 16px;
    }
    
    .ranking-count {
        font-size: 14px;
    }
    
    .trophy-icon {
        width: 18px;
        height: 18px;
    }
    
    .trophy-count {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .header-title {
        font-size: 18px;
    }
    
    .fish-name {
        font-size: 15px;
    }
    
    .location-name {
        font-size: 13px;
    }
    
    .ranking-count {
        font-size: 13px;
    }
}

/* 返回按钮 */
.back-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    margin-right: 12px;
    border-radius: 50%;
    transition: background 0.3s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 地图选择网格 */
.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.map-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}


.map-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* 地图选择滚动列表 */
.map-selection {
    background: #fff;
    margin: 0;
    overflow: hidden;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 8px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.map-scroll {
    white-space: nowrap;
    padding: 12px 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.map-scroll .map-item {
    display: inline-block;
    width: 80px;
    text-align: center;
    margin-right: 15px;
    padding: 8px 8px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    vertical-align: top;
}

.map-scroll .map-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.map-scroll .map-item:active {
    background: #dee2e6;
}

.map-scroll .map-item.selected {
    background: #1e3a8a;
    color: #fff;
}

.map-scroll .map-item.selected .map-name {
    color: #fff;
}


.map-scroll .map-name {
    font-size: 12px;
    color: #333;
    font-weight: 500;
    line-height: 1.2;
}

/* 鱼类信息卡片 */
.fish-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 热门点位卡片 */
.location-points-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.location-points-header {
    margin-bottom: 16px;
}

.location-points-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.location-points-subtitle {
    font-size: 14px;
    color: #666;
}

.location-points-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-height: 120px; /* 限制最多2行 */
    overflow: hidden;
}

.location-point-btn {
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    padding: 8px 4px;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-all;
}

.location-point-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 点位颜色分级 */
.location-point-btn.count-high {
    background: #ff4757;
    color: #fff;
}

.location-point-btn.count-medium {
    background: #ffa502;
    color: #fff;
}

.location-point-btn.count-low {
    background: #2ed573;
    color: #fff;
}

.location-point-btn.count-default {
    background: #f5f5f5;
    color: #333;
}

.fish-info-card .fish-info {
    display: flex;
    align-items: center;
}

.fish-info-card .fish-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    margin-right: 20px;
    background-color: #f0f0f0;
    object-fit: cover;
}

.fish-info-card .fish-details {
    flex: 1;
}

.fish-info-card .fish-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.fish-info-card .location-name {
    font-size: 16px;
    color: #4facfe;
    font-weight: 500;
    margin-bottom: 8px;
}

.fish-info-card .fish-count {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 饵料列表 */
.bait-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bait-item {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.bait-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.bait-info {
    display: flex;
    align-items: center;
}

.bait-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-right: 16px;
    background-color: #f0f0f0;
    object-fit: cover;
}

.bait-details {
    flex: 1;
}

.bait-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.bait-count {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

/* 章节标题 */
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

/* 触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .fish-item:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .nav-item:hover {
        color: #999;
    }
    
    .nav-item.active:hover {
        color: #4facfe;
    }
    
    .map-card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .bait-item:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* 玩家排行样式 */
.player-list {
    background: #fff;
    border-radius: 12px;
    margin: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.player-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.player-item:last-child {
    border-bottom: none;
}

.player-item:hover {
    background-color: #f8f9fa;
}

.player-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 16px;
    font-weight: bold;
    font-size: 16px;
    color: white;
}

.rank-gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #b8860b;
}

.rank-silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #696969;
}

.rank-bronze {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: white;
}

.rank-normal {
    background: linear-gradient(135deg, #6c757d, #adb5bd);
    color: white;
}

.player-info {
    flex: 1;
}

.player-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.player-stats {
    display: flex;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.player-arrow {
    color: #ccc;
    font-size: 20px;
}

/* 玩家详情样式 */
.player-detail-list {
    background: #fff;
    border-radius: 12px;
    margin: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.detail-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item:hover {
    background-color: #f8f9fa;
}

.detail-item .fish-info {
    display: flex;
    align-items: center;
    width: 100%;
}

.detail-item .fish-image {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    margin-right: 12px;
    background-color: #f0f0f0;
    object-fit: cover;
}

.detail-item .fish-details {
    flex: 1;
}

.detail-item .fish-name-location {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-item .fish-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.detail-item .location-name {
    font-size: 14px;
    color: #4facfe;
    font-weight: 500;
}

.detail-item .ranking-count {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-item .detail-bait {
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-item .bait-image {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background-color: #f0f0f0;
    object-fit: cover;
}

.detail-item .bait-name {
    font-size: 13px;
    color: #666;
}

.detail-item .fish-weight {
    font-size: 12px;
    color: #888;
    margin-left: 8px;
    font-weight: 500;
}

.detail-item .detail-star {
    display: flex;
    align-items: center;
}

.detail-item .star-image {
    width: 20px;
    height: 20px;
}

/* 返回按钮样式 */
.header-back {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.header-back:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.back-icon {
    display: block;
    line-height: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .player-item {
        padding: 12px;
    }
    
    .player-rank {
        width: 36px;
        height: 36px;
        font-size: 14px;
        margin-right: 12px;
    }
    
    .player-name {
        font-size: 16px;
    }
    
    .player-stats {
        gap: 12px;
    }
    
    .stat-label,
    .stat-value {
        font-size: 13px;
    }
    
    .detail-item {
        padding: 12px;
    }
    
    .fish-image {
        width: 45px;
        height: 45px;
        margin-right: 10px;
    }
    
    .fish-info {
        gap: 8px;
    }
    
    .fish-name {
        font-size: 15px;
    }
    
    .fish-location {
        font-size: 12px;
        padding: 3px 6px;
    }
    
    .detail-meta {
        margin-left: 55px;
        gap: 12px;
    }
    
    .detail-date {
        font-size: 12px;
        padding: 3px 6px;
    }
    
    .bait-image {
        width: 18px;
        height: 18px;
    }
    
    .bait-name {
        font-size: 12px;
        padding: 3px 6px;
    }
    
    .star-image {
        width: 20px;
        height: 20px;
    }
}

/* 关于页面样式 */
.about-section {
    margin-bottom: 16px;
}

.section-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 16px;
    margin: 0 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* 突出显示卡片 */
.highlight-card {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    border: 2px solid rgba(79, 172, 254, 0.3);
    box-shadow: 0 6px 25px rgba(79, 172, 254, 0.2);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.about-content {
    line-height: 1.6;
    color: #666;
    text-align: justify;
}

/* 简化联系方式样式 */
.contact-simple {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 14px;
    color: #333;
}

.contact-line .contact-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.contact-text {
    flex: 1;
    font-weight: 500;
}

.qr-code {
    text-align: center;
    margin-top: 20px;
}

.qr-image {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

/* 主要按钮样式 */
.primary-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    transform: scale(1.05);
}

.primary-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

.action-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 24px;
}

.btn-text {
    font-size: 16px;
    font-weight: 600;
}

.btn-desc {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 400;
}

.footer-info {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 80px; /* 为底部导航栏留出空间 */
    position: relative;
    z-index: 1;
}

.icp-info {
    font-size: 12px;
    color: #666;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 关于页面响应式设计 */
@media (max-width: 480px) {
    .section-card {
        margin: 0 12px;
        padding: 16px;
    }
    
    .contact-item {
        padding: 10px;
    }
    
    .contact-icon {
        font-size: 20px;
        width: 36px;
        height: 36px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .qr-image {
        max-width: 150px;
    }
}

/* SEO内容区域样式 */
.seo-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    margin: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.seo-section h2 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.seo-section h3 {
    color: #555;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 10px 0;
}

.seo-section p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.seo-section ul {
    margin: 10px 0 15px 20px;
}

.seo-section li {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.seo-section strong {
    color: #333;
    font-weight: 600;
}

/* SEO内容区域响应式设计 */
@media (max-width: 480px) {
    .seo-content {
        margin: 12px;
        padding: 15px;
    }
    
    .seo-section h2 {
        font-size: 16px;
    }
    
    .seo-section h3 {
        font-size: 14px;
    }
    
    .seo-section p,
    .seo-section li {
        font-size: 13px;
    }
}

/* 搜索功能样式 */
.floating-search-btn {
    position: fixed;
    top: 80px;
    left: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    opacity: 1;
    visibility: visible;
    border: 2px solid #fff;
}

.floating-search-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(30, 58, 138, 0.6);
}

.floating-search-btn:active {
    transform: scale(0.95);
}

.search-icon {
    font-size: 24px;
    color: white;
    pointer-events: none;
}

/* 搜索模态框 */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.search-modal.show {
    display: flex;
}

.search-modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-header h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #666;
}

.search-input-container {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.search-input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input-container input:focus {
    border-color: #667eea;
}

.search-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

.search-tips {
    text-align: center;
}

.search-tips p {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

/* 搜索功能响应式设计 */
@media (max-width: 480px) {
    .floating-search-btn {
        width: 48px;
        height: 48px;
        top: 70px;
        left: 16px;
    }
    
    .search-icon {
        font-size: 20px;
    }
    
    .search-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .search-header h3 {
        font-size: 16px;
    }
    
    .location-points-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        max-height: 100px; /* 移动端2行高度 */
    }
    
    .location-point-btn {
        font-size: 11px;
        padding: 6px 3px;
        min-height: 28px;
    }
    
    .search-input-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-input-container input {
        font-size: 14px;
        padding: 10px 14px;
    }
    
    .search-btn {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .search-tips p {
        font-size: 13px;
    }
}

/* 搜索结果空状态样式 */
.empty-submessage {
    color: #999;
    font-size: 12px;
    margin-top: 8px;
    line-height: 1.4;
}

/* 热门点位栏样式 */
.hot-locations {
    background: rgba(255, 255, 255, 0.95);
    margin: 10px;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hot-locations:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
    transform: translateY(-2px);
}

.hot-locations-header {
    margin-bottom: 12px;
}

.hot-locations-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.hot-locations-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 80px; /* Limit to 2 rows of 4 buttons */
    overflow: hidden;
}

.hot-location-btn {
    background: #a4b0be;
    color: white;
    border: none;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
    max-width: calc(25% - 6px); /* 确保每行最多4个按钮 */
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    flex: 1 1 calc(25% - 6px); /* 弹性布局，每行4个 */
}

.hot-location-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hot-location-btn:active {
    transform: translateY(0);
}

.hot-location-btn.red {
    background: #ff4757;
}

.hot-location-btn.orange {
    background: #ffa502;
}

.hot-location-btn.green {
    background: #2ed573;
}

.hot-location-btn.gray {
    background: #a4b0be;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hot-locations {
        margin: 8px;
        padding: 12px;
    }
    
    .hot-location-btn {
        padding: 5px 10px;
        font-size: 11px;
        min-width: 50px;
        max-width: calc(25% - 4px); /* 移动端每行4个 */
        flex: 1 1 calc(25% - 4px);
    }
    
    .hot-locations-content {
        max-height: 70px; /* 移动端2行高度 */
        gap: 6px;
    }
}

/* 淘宝广告组件样式 */
.taobao-ad-container {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 16px 0;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.taobao-ad-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 加载状态 */
.ad-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #666;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4facfe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误状态 */
.ad-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #999;
}

.error-icon {
    font-size: 24px;
    margin-bottom: 12px;
}

/* 广告内容 */
.ad-content {
    display: flex;
    flex-direction: row;
    min-height: 120px;
}

/* 图片区域 */
.ad-image-section {
    position: relative;
    width: 120px;
    height: 100%; /* 占满容器高度 */
    flex-shrink: 0;
    background: #fff;
    overflow: hidden;
}

.ad-image-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.ad-image-item {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.3s ease;
}

.ad-image-indicators {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
}

.ad-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.ad-indicator.active {
    background: #fff;
}

/* 信息区域 */
.ad-info-section {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* 确保信息区域占满右侧高度 */
}

.ad-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff4757;
    margin-bottom: 12px;
}

.ad-action {
    display: flex;
    justify-content: flex-end;
}

.ad-buy-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.ad-buy-btn:hover {
    background: linear-gradient(135deg, #ff5252, #ff3742);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}

.btn-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.ad-buy-btn:hover .btn-icon {
    transform: translateX(2px);
}

/* 广告组件响应式设计 */
@media (max-width: 768px) {
    .taobao-ad-container {
        margin: 12px 0;
    }
    
    .ad-content {
        flex-direction: row;
        min-height: 100px;
    }
    
    .ad-image-section {
        width: 100px;
        height: 100%; /* 保持占满容器高度 */
    }
    
    .ad-info-section {
        padding: 12px;
    }
    
    .ad-title {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .ad-desc {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .ad-price {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .ad-buy-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .ad-content {
        flex-direction: row; /* 保持左右布局 */
        min-height: 100px; /* 调整最小高度 */
    }
    
    .ad-image-section {
        width: 80px; /* 移动端图片区域更小 */
        height: 100%; /* 保持占满容器高度 */
    }
    
    .ad-info-section {
        padding: 12px;
    }
    
    .ad-title {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .ad-desc {
        font-size: 11px;
        margin-bottom: 8px;
        -webkit-line-clamp: 2; /* 移动端显示更少行 */
    }
    
    .ad-price {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .ad-buy-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
}
