/* 蟹卡页面专属样式 */

/* 蟹卡容器 */
.crabcards-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 20px 0;
    background-attachment: fixed;
}

/* 容器最大宽度限制 */
.container {
    max-width: 1400px;
}

/* 页面标题区域 */
.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f3e5ab);
    border-radius: 3px;
}

/* 统计卡片 */
.stats-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    position: relative;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s;
}

.stats-card:hover::before {
    left: 100%;
}

.stats-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stats-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #d4af37;
}

/* 蟹卡卡片 */
.crabcard-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    position: relative;
}

.crabcard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.crabcard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s;
}

.crabcard-card:hover::before {
    left: 100%;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.card-number {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    letter-spacing: 1px;
    background: rgba(78, 115, 223, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.price-tag {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-weight: 600;
    display: inline-block;
}

/* 状态标签 */
.status-badge {
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.luxury-badge-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

.luxury-badge-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

.luxury-badge-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    color: white;
}

/* 密码显示样式 */
.password-display {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    min-height: 46px;
}

.password-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.password-display:hover::before {
    transform: translateX(100%);
}

.password-display-encrypted {
    background: linear-gradient(135deg, rgba(188, 197, 205, 0.7), rgba(153, 160, 167, 0.7));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.password-display-revealed {
    background: linear-gradient(135deg, rgba(128, 165, 243, 0.6), rgba(84, 125, 210, 0.6));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(128, 165, 243, 0.3);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(128, 165, 243, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(128, 165, 243, 0);
    }
}

.encrypted-text {
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    letter-spacing: 3px;
    font-size: 1.2rem;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    margin-right: 10px;
}

.real-password {
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 1.2rem;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    margin-right: 10px;
}

/* 密码按钮样式 */
.btn-password-action {
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 70px;
    height: 32px;
}

.btn-password-action i {
    margin-right: 5px;
    font-size: 0.9rem;
}

.btn-reveal-password {
    background: linear-gradient(135deg, #a0d6b4, #86c2a0);
    color: #155724;
}

.btn-reveal-password:hover {
    background: linear-gradient(135deg, #86c2a0, #6dad8c);
    color: #0d3a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-hide-password {
    background: linear-gradient(135deg, #ffeaa7, #fbc531);
    color: #856404;
}

.btn-hide-password:hover {
    background: linear-gradient(135deg, #fbc531, #e6bb2d);
    color: #6a4f03;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-copy-password {
    background: linear-gradient(135deg, #74b9ff, #5a9bff);
    color: #0d47a1;
}

.btn-copy-password:hover {
    background: linear-gradient(135deg, #5a9bff, #438aff);
    color: #09367d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 复制成功动画 */
.copy-success {
    animation: copyPulse 0.5s ease;
}

@keyframes copyPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 操作按钮 */
.action-btn {
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.luxury-btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #0a192f;
}

.luxury-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    color: #0a192f;
}

.luxury-btn-outline {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.luxury-btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 117, 125, 0.3);
    color: white;
}

.luxury-btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.luxury-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 117, 125, 0.3);
    color: white;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    background: linear-gradient(135deg, #f8f9fc 0%, #eef1f9 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.empty-state i {
    font-size: 4rem;
    color: #d4af37;
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-state h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* 分页样式 */
.luxury-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    margin-top: 1rem;
}

.luxury-pagination .page-item {
    margin: 0 0.25rem;
}

.luxury-pagination .page-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    color: #4e73df;
    background-color: #fff;
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 3px;
}

.luxury-pagination .page-link:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    color: #d4af37;
    border-color: rgba(212, 175, 55, 0.3);
}

.luxury-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #0a192f;
    border-color: #d4af37;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.luxury-pagination .page-item.disabled .page-link {
    background: rgba(248, 249, 250, 0.5);
    color: #adb5bd;
    border-color: rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .stats-number {
        font-size: 1.2rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .crabcard-card .card-body {
        padding: 20px;
    }
    
    .password-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .btn-password-action {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .action-btn {
        width: 100%;
        min-width: auto;
        text-align: center;
        justify-content: center;
    }
    
    .stats-card {
        margin-bottom: 15px;
    }
    
    .stats-number {
        font-size: 1.1rem;
    }
}