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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #f8fafc;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 - 专业商务风 */
.navbar {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
}

.nav-logo h2 {
    color: #0f172a;
    font-size: 1.5rem;
    margin-bottom: 2px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-logo p {
    color: #64748b;
    font-size: 0.85rem;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-link {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: #0ea5e9;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #1f2937;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 英雄区域 - 清新商务风 */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    text-align: center;
    padding: 110px 20px 70px;
    margin-top: 65px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 18px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 35px;
    opacity: 0.9;
    color: #cbd5e1;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮样式 - 现代简约 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
    background: linear-gradient(135deg, #0284c7 0%, #0891b2 100%);
}

.btn-secondary {
    background: rgba(64, 189, 238, 0.77);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* 主要内容区域 */
.main-sections {
    padding: 70px 0;
    background: #f8fafc;
}

.section-card {
    background: white;
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 35px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s ease;
}

.section-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 2px solid #f1f5f9;
}

.section-header h2 {
    color: #0f172a;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-header i {
    color: #0ea5e9;
}

.view-all {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.view-all:hover {
    color: #0284c7;
}

/* 动态网格 */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.post-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

.post-image {
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.06);
}

.post-content {
    padding: 20px;
}

.post-content h3 {
    color: #0f172a;
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.post-content p {
    color: #64748b;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

.post-likes {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-likes i {
    color: #f59e0b;
}

/* 地图容器 */
.map-container {
    position: relative;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    min-height: 500px;
}

/* ECharts 中国地图容器 - 深色主题 */
.china-map-echarts {
    width: 100%;
    height: 600px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 12px;
    position: relative;
    border: 1px solid #334155;
}

.map-legend {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 18px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    border: 1px solid #e5e7eb;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #1f2937;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f59e0b;
    border: 2px solid #fff;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.legend-dot.small {
    width: 8px;
    height: 8px;
}

.legend-dot.medium {
    width: 12px;
    height: 12px;
}

.legend-dot.large {
    width: 16px;
    height: 16px;
}

/* 地图数据点 */
.map-dot {
    position: absolute;
    background: #f59e0b;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.map-dot:hover {
    transform: scale(1.2);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.8);
}

.map-dot.small {
    width: 8px;
    height: 8px;
}

.map-dot.medium {
    width: 12px;
    height: 12px;
}

.map-dot.large {
    width: 16px;
    height: 16px;
}

.map-dot.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

/* 打卡网格 */
.checkin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.checkin-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.checkin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.checkin-image {
    height: 150px;
    overflow: hidden;
    background: #f1f5f9;
}

.checkin-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkin-info {
    padding: 15px;
}

.checkin-info h4 {
    color: #0f172a;
    margin-bottom: 5px;
    font-size: 1rem;
    font-weight: 600;
}

.checkin-info p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.checkin-date {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* 会员牌样式 - 现代商务风 */
.membership-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.4);
}

.membership-hero {
    text-align: center;
    padding: 40px 0;
}

.membership-content {
    max-width: 800px;
    margin: 0 auto;
}

.membership-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sparkle {
    font-size: 2rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
}

.membership-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 400;
    color: #cbd5e1;
}

.membership-card-container {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.membership-card {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.card-preview {
    flex: 1;
    min-width: 300px;
}

.card-design {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.card-design::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.card-header h3 {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 700;
}

.card-number {
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.card-body {
    position: relative;
    z-index: 1;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.member-details h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.member-details p {
    opacity: 0.85;
    font-size: 0.9rem;
}

.card-footer {
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.join-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

.card-actions {
    flex: 1;
    min-width: 250px;
}

.card-actions .btn {
    display: block;
    margin-bottom: 15px;
    text-align: center;
}

/* 认证页面样式 */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 20px;
    background: #f8fafc;
}

.auth-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
    border: 1px solid #e5e7eb;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #0f172a;
    font-size: 1.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1f2937;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    color: #1f2937;
}

.form-group input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #64748b;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.auth-footer a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    color: #0284c7;
}

/* 警告框样式 */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* 页脚样式 - 现代简约 */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 60px 0 20px;
    margin-top: 80px;
    border-top: 1px solid #1e293b;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #f1f5f9;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #0ea5e9;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* 无内容提示 */
.no-content {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 40px 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* ========================================
       移动端APP风格底部导航栏
       ======================================== */
    
    /* 隐藏footer */
    .footer {
        display: none !important;
    }
    
    /* 调整body为底部导航预留空间 */
    body {
        padding-bottom: 70px;
    }
    
    /* 导航栏固定在底部 */
    .navbar {
        position: fixed;
        top: auto !important;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e5e7eb;
        border-bottom: none;
        z-index: 1000;
    }
    
    .nav-container {
        height: auto;
        padding: 0;
        flex-direction: column;
        align-items: stretch;
    }
    
    /* 隐藏logo */
    .nav-logo {
        display: none;
    }
    
    /* 隐藏汉堡菜单 */
    .hamburger {
        display: none !important;
    }
    
    /* 显示底部导航菜单 */
    .nav-menu {
        display: flex !important;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        gap: 0;
        padding: 8px 0;
        width: 100%;
        background: #ffffff;
    }
    
    /* 底部导航链接样式 */
    .nav-link {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 5px;
        gap: 4px;
        font-size: 0.7rem;
        color: #64748b;
        text-align: center;
        position: relative;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    /* 为导航链接添加图标（使用::before伪元素） */
    .nav-link::before {
        content: '';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 1.3rem;
        display: block;
        transition: all 0.3s ease;
    }
    
    /* 首页图标 */
    .nav-link[href*="index"]::before,
    .nav-link[href="#home"]::before {
        content: '\f015'; /* home */
    }
    
    /* 打卡图标 */
    .nav-link[href*="checkin"]::before {
        content: '\f46d'; /* check-square */
    }
    
    /* 名片图标 */
    .nav-link[href*="fan-card"]::before {
        content: '\f2c2'; /* id-card */
    }
    
    /* 交易市场图标 */
    .nav-link[href*="marketplace"]::before {
        content: '\f07a'; /* shopping-cart */
    }
    
    /* 留言图标 */
    .nav-link[href*="messages"]::before {
        content: '\f4ad'; /* comment-dots */
    }
    
    /* 个人中心图标 */
    .nav-link[href*="dashboard"]::before {
        content: '\f007'; /* user */
    }
    
    /* 登录图标 */
    .nav-link[href*="login"]::before {
        content: '\f2f6'; /* sign-in-alt */
    }
    
    /* 注册图标 */
    .nav-link[href*="register"]::before {
        content: '\f234'; /* user-plus */
    }
    
    /* 退出图标 */
    .nav-link[href*="logout"]::before {
        content: '\f2f5'; /* sign-out-alt */
    }
    
    /* 移除原有的底部下划线效果 */
    .nav-link::after {
        display: none;
    }
    
    /* 激活/悬停状态 */
    .nav-link:hover,
    .nav-link:active {
        color: #0ea5e9;
        background: rgba(14, 165, 233, 0.08);
    }
    
    .nav-link:hover::before,
    .nav-link:active::before {
        transform: scale(1.15);
        color: #0ea5e9;
    }
    
    /* 调整主内容区域，避免被底部导航遮挡 */
    main {
        padding-bottom: 20px;
        margin-top: 0 !important;
        padding-top: 15px !important;
    }
    
    /* 移除页面顶部为导航栏预留的空间 */
    section,
    .main-sections {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* 移除英雄区域顶部margin */
    .hero {
        margin-top: 0 !important;
        padding-top: 80px !important;
    }
    
    /* 其他原有的移动端样式 */
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-card {
        padding: 25px;
        margin-bottom: 25px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .checkin-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .membership-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .membership-subtitle {
        font-size: 1.2rem;
    }
    
    .membership-card-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .membership-card {
        flex-direction: column;
        text-align: center;
    }
    
    .card-preview {
        min-width: auto;
    }
    
    .card-actions {
        min-width: auto;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 15px 60px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-card {
        padding: 20px;
    }
    
    .checkin-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: 25px 18px;
    }
}

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

.section-card {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 - 现代简约 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选中文本样式 */
::selection {
    background: #0ea5e9;
    color: white;
}

::-moz-selection {
    background: #0ea5e9;
    color: white;
}

/* ========================================
   分页样式 - 现代商务风格
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 50px auto 30px;
    padding: 20px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 16px;
    background: #ffffff;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.page-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.page-link:hover {
    color: #0ea5e9;
    border-color: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.page-link:active {
    transform: translateY(0);
}

/* 当前页样式 */
.page-link.active {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    font-weight: 600;
    cursor: default;
}

.page-link.active::before {
    opacity: 1;
}

.page-link.active:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

/* 上一页/下一页按钮 */
.page-link i {
    font-size: 0.85rem;
    margin: 0 4px;
}

.page-link:first-child,
.page-link:last-child {
    font-weight: 600;
    padding: 0 20px;
}

/* 数字页码特殊样式 */
.page-link:not(:first-child):not(:last-child):not(.active) {
    min-width: 42px;
    padding: 0 12px;
}

/* 悬停特效 */
.page-link:not(.active):hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(6, 182, 212, 0.05));
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination {
        gap: 6px;
        padding: 15px 10px;
        margin: 30px auto 20px;
    }
    
    .page-link {
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
        font-size: 0.9rem;
    }
    
    .page-link:first-child,
    .page-link:last-child {
        padding: 0 14px;
    }
    
    /* 在手机上隐藏部分页码 */
    .page-link:not(:first-child):not(:last-child):not(.active) {
        display: none;
    }
}

@media (max-width: 480px) {
    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 0.85rem;
    }
}

/* ========================================
   地图和城市热榜布局
   ======================================== */
.map-checkin-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
    align-items: start;
}

.map-container {
    position: relative;
    min-height: 500px;
}

/* 城市热榜样式 */
.city-ranking {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 90px;
}

.ranking-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.ranking-header i {
    font-size: 1.4rem;
    color: #f59e0b;
    animation: fire-pulse 1.5s ease-in-out infinite;
}

@keyframes fire-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.ranking-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.loading-ranking,
.no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.loading-ranking i {
    font-size: 1.2rem;
}

.ranking-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    animation: slideInRight 0.5s ease-out both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ranking-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.15);
    border-color: #0ea5e9;
}

.ranking-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    align-items: center;
}

.rank-badge {
    grid-row: 1 / 3;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.ranking-item:hover .rank-badge {
    transform: scale(1.1) rotate(5deg);
}

.city-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.city-name {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.city-count {
    font-size: 0.85rem;
    color: #64748b;
}

.rank-bar {
    grid-column: 2 / 3;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease-out;
    animation: fillBar 1.5s ease-out;
}

@keyframes fillBar {
    from {
        width: 0%;
    }
}

/* 移动端适配 */
@media (max-width: 1024px) {
    .map-checkin-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .city-ranking {
        position: static;
        order: -1; /* 在移动端将热榜放在地图上方 */
    }
    
    .ranking-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .city-ranking {
        padding: 20px;
    }
    
    .ranking-header h3 {
        font-size: 1.05rem;
    }
    
    .ranking-item {
        padding: 12px;
    }
    
    .rank-badge {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    .city-name {
        font-size: 0.95rem;
    }
    
    .city-count {
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .ranking-list {
        grid-template-columns: 1fr;
    }
}
