/* ==================== 市场转让系统样式 ==================== */

/* 接盘按钮（在市场卡片上） */
.transfer-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    animation: transferPulse 2s ease-in-out infinite;
}

.transfer-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(240, 147, 251, 0.4);
}

.transfer-badge i {
    font-size: 1rem;
}

@keyframes transferPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(240, 147, 251, 0.6);
    }
}

/* 转让弹窗遮罩 */
.transfer-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 转让弹窗主体 */
.transfer-modal {
    background: var(--dark-light);
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(102, 126, 234, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.transfer-modal::-webkit-scrollbar {
    width: 8px;
}

.transfer-modal::-webkit-scrollbar-track {
    background: transparent;
}

.transfer-modal::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 4px;
}

/* 头部 */
.transfer-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
    border-radius: 20px 20px 0 0;
}

.transfer-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.transfer-icon.fixed-price {
    background: linear-gradient(135deg, #43e97b 0%, #38d39f 100%);
}

.transfer-header h2 {
    flex: 1;
    margin: 0;
    font-size: 1.5rem;
    color: var(--text);
}

.transfer-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.transfer-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

/* 市场信息区 */
.transfer-market-info {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}

.market-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.market-title i {
    color: #667eea;
}

.market-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.market-stats-row .stat {
    padding: 0.8rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    text-align: center;
}

.market-stats-row .stat label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.market-stats-row .stat value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

/* 竞价信息区 */
.auction-info {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.auction-price {
    text-align: center;
}

.auction-price label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.price-display .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
}

.price-display .amount {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.price-display.large .currency {
    font-size: 2rem;
}

.price-display.large .amount {
    font-size: 4rem;
}

.current-bidder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(67, 233, 123, 0.1);
    border: 1px solid rgba(67, 233, 123, 0.3);
    border-radius: 8px;
    color: #43e97b;
    font-size: 0.9rem;
}

.current-bidder img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.no-bidder {
    padding: 0.6rem 1rem;
    background: rgba(136, 153, 166, 0.1);
    border: 1px solid rgba(136, 153, 166, 0.3);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.auction-time {
    text-align: center;
}

.auction-time label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
}

.time-value {
    font-size: 1.8rem;
    line-height: 1;
    color: #667eea;
}

.time-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.time-separator {
    color: #667eea;
    font-size: 1.5rem;
}

.countdown .ended {
    color: var(--danger);
    font-size: 1.2rem;
}

/* 出价区域 */
.bid-section {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
}

.bid-input-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.min-increment {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.input-with-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.quick-bid {
    padding: 0.8rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    color: #667eea;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.quick-bid:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transform: translateY(-2px);
}

.custom-bid-input {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}

.input-prefix {
    position: absolute;
    left: 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
    z-index: 1;
}

.bid-input {
    flex: 1;
    padding: 1rem 1rem 1rem 2.5rem;
    background: var(--dark-lighter);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;
}

.bid-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.bid-submit-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bid-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(240, 147, 251, 0.4);
}

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

/* 标价信息区 */
.fixed-price-info {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.05) 0%, rgba(56, 211, 159, 0.05) 100%);
}

.fixed-price-info label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.price-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
}

.price-badge.available {
    background: rgba(67, 233, 123, 0.2);
    color: #43e97b;
    border: 1px solid rgba(67, 233, 123, 0.4);
}

.price-badge.sold {
    background: rgba(245, 87, 108, 0.2);
    color: #f5576c;
    border: 1px solid rgba(245, 87, 108, 0.4);
}

/* 购买按钮区 */
.buy-now-section {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.buy-now-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #43e97b 0%, #38d39f 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.buy-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(67, 233, 123, 0.4);
}

.buy-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sold-notice {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.sold-notice i {
    font-size: 3rem;
    color: #43e97b;
    margin-bottom: 1rem;
}

.sold-notice p {
    font-size: 1rem;
    margin: 0;
}

/* 收益预估 */
.earnings-preview {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
}

.earnings-preview h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.earnings-preview h4 i {
    color: #667eea;
}

.earnings-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.earning-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.earning-item.highlight {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.1) 0%, rgba(56, 211, 159, 0.1) 100%);
    border-color: rgba(67, 233, 123, 0.3);
}

.earning-item i {
    font-size: 1.5rem;
    color: #667eea;
}

.earning-item.highlight i {
    color: #43e97b;
}

.earning-detail {
    flex: 1;
}

.earning-detail label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.earning-detail value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

/* 排行榜 */
.bid-leaderboard {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
}

.bid-leaderboard h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bid-leaderboard h4 i {
    color: #667eea;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.2s ease;
}

.leaderboard-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.leaderboard-item.leader {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-color: rgba(255, 215, 0, 0.3);
}

.leaderboard-item .rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #667eea;
}

.leaderboard-item.leader .rank {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    color: #000;
}

.bidder-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.bidder-info {
    flex: 1;
}

.bidder-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.bid-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.bid-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
}

.no-bids {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* 规则说明 */
.transfer-rules {
    padding: 2rem;
}

.transfer-rules h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.transfer-rules h4 i {
    color: #667eea;
}

.transfer-rules ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style: none;
}

.transfer-rules li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.9rem;
}

.transfer-rules li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: 700;
}

/* 确认弹窗 */
.confirmation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    animation: fadeIn 0.3s ease;
}

.confirmation-modal {
    background: var(--dark-light);
    border-radius: 20px;
    padding: 3rem;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(102, 126, 234, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.confirmation-modal h2 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: var(--text);
}

.confirmation-modal p {
    margin: 0 0 2rem 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.confirmation-details {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

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

.detail-item label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-item value {
    color: var(--text);
    font-weight: 600;
}

.confirmation-close-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirmation-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* 响应式 */
@media (max-width: 768px) {
    .transfer-modal {
        width: 95%;
        max-width: none;
    }
    
    .auction-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .input-with-buttons {
        grid-template-columns: 1fr;
    }
    
    .custom-bid-input {
        flex-direction: column;
    }
    
    .bid-input {
        width: 100%;
    }
    
    .bid-submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .market-stats-row {
        grid-template-columns: 1fr;
    }
}
