/* 公共样式 */
.coupon-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 16px;
    color: white;
    position: relative;
    overflow: hidden;
}

.coupon-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    width: 20px;
    height: 20px;
    background: #f8f9fa;
    border-radius: 50%;
    transform: translateY(-50%);
}

.coupon-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #f8f9fa;
    border-radius: 50%;
    transform: translateY(-50%);
}

.coupon-dashed {
    border-left: 2px dashed rgba(255,255,255,0.3);
    padding-left: 16px;
    margin-left: 16px;
}

.merchant-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.category-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.category-card:hover {
    transform: translateY(-2px);
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-available {
    background: #dcfce7;
    color: #16a34a;
}

.status-used {
    background: #fee2e2;
    color: #dc2626;
}

.status-expired {
    background: #f3f4f6;
    color: #6b7280;
}

.tab-nav {
    border-bottom: 1px solid #e5e7eb;
}

.tab-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-item.active {
    color: #007AFF;
    border-bottom-color: #007AFF;
}

.search-bar {
    background: #f8f9fa;
    border-radius: 24px;
    padding: 8px 16px;
    border: none;
    outline: none;
}

.floating-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #007AFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0,122,255,0.3);
    cursor: pointer;
    transition: transform 0.2s;
}

.floating-btn:hover {
    transform: scale(1.1);
}

/* 现代化底部导航栏样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    padding: 8px 0 20px 0;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.08);
    z-index: 1000;
    backdrop-filter: blur(20px);
    width: 100vw;
    max-width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 375px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 16px;
    min-width: 60px;
    position: relative;
}

.nav-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
}

.nav-item.active.merchant {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.25);
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    font-size: 20px;
    color: #8e8e93;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-item.active .nav-icon {
    color: white;
    transform: scale(1.15);
}

.nav-text {
    font-size: 11px;
    font-weight: 500;
    color: #8e8e93;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.5px;
}

.nav-item.active .nav-text {
    color: white;
    font-weight: 600;
    transform: translateY(-1px);
}

.nav-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 12px;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

/* 页面底部留白 - 确保底部导航不遮挡内容 */
.page-content {
    padding-bottom: 100px;
}

/* 确保所有页面内容有足够底部空间 */
body {
    padding-bottom: 0;
}

/* 修复iframe中的body标签，确保内容完整显示 */
.page-content:last-child {
    margin-bottom: 20px;
}

/* 导航栏动画效果 */
.nav-item:hover:not(.active) {
    transform: translateY(-1px);
    background: rgba(102, 126, 234, 0.05);
}

.nav-item.merchant:hover:not(.active) {
    background: rgba(255, 107, 107, 0.05);
} 