/* 拍卖系统样式 */

/* 基础样式 - 移动端优先 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* 通用样式 */
.auction-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 导航返回按钮美化 */
.nav-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    /* background-color: rgba(0, 0, 0, 0.05); */
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 8px;
}

.nav-back-btn:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.nav-back-btn svg {
    width: 22px;
    height: 22px;
    stroke: #333;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 专场卡片 */
.session-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.session-banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.session-info {
    padding: 15px;
}

.session-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.session-time {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.session-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.session-stat-item {
    font-size: 12px;
    color: #999;
}

.session-stat-value {
    font-weight: bold;
    color: #333;
}

/* 拍品卡片 */
.item-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.item-content {
    padding: 15px;
}

.item-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.item-price {
    font-size: 24px;
    color: #ff4d4f;
    font-weight: bold;
    margin-bottom: 10px;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-badge.pending {
    background: #e6f7ff;
    color: #1890ff;
}

.status-badge.ongoing {
    background: #f6ffed;
    color: #52c41a;
}

.status-badge.ended {
    background: #fff7e6;
    color: #fa8c16;
}

.status-badge.cancelled {
    background: #fff1f0;
    color: #f5222d;
}

.bid-item .revoke-btn {
    font-size: 12px;
    color: #ff4d4f;
    border: 1px solid #ff4d4f;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
}

.bid-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* 确认弹窗 */
.confirm-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}
.confirm-card {
    background: #fff;
    width: 80%;
    max-width: 320px;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    animation: zoomIn 0.2s;
}
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.confirm-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}
.confirm-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}
.confirm-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.confirm-btn-action {
    flex: 1;
    height: 36px;
    border-radius: 18px;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}
.confirm-btn-cancel {
    background: #f0f0f0;
    color: #666;
}
.confirm-btn-ok {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
    .auction-container {
        padding: 10px;
    }
    
    .session-card,
    .item-card {
        margin-bottom: 10px;
    }
}

/* 响应式 PC */
@media (min-width: 769px) {
    body { 
        display: flex; 
        justify-content: center; 
        background: #333; 
        min-height: 100vh;
    }
    .container { 
        width: 480px; /* Fixed mobile width on PC */
        background: #f5f5f5; 
        min-height: 100vh; 
        box-shadow: 0 0 20px rgba(0,0,0,0.3);
        position: relative;
    }
    /* Hide scrollbar for PC view to look like app */
    ::-webkit-scrollbar {
        width: 0;
        background: transparent;
    }
    .confirm-modal {
        position: absolute;
        width: 100%;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
    }
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    z-index: 999;
}

@media (min-width: 769px) {
    .bottom-nav {
        width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
}

.nav-item {
    text-decoration: none;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
}

.nav-item.active {
    color: #b22222;
}

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