/* 挂售页面样式 */

/* 顶部导航 */
.sell-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.sell-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sell-header-back,
.sell-header-records {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 20px;
}

.sell-header-title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* 主内容区 */
.sell-container {
    padding: 16px;
    background: #f7f7f7;
    min-height: calc(100vh - 60px);
}

/* 表单卡片 */
.sell-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 表单行 */
.sell-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.sell-form-row.full {
    flex-direction: column;
}

.sell-form-item {
    flex: 1;
}

.sell-form-item.full-width {
    width: 100%;
}

.sell-form-label {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.sell-form-input-wrap {
    position: relative;
}

.sell-form-input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    background: #fafafa;
    transition: all 0.3s;
}

.sell-form-input:focus {
    outline: none;
    border-color: #0d6efd;
    background: #fff;
}

.sell-form-input:read-only {
    color: #666;
    background: #f5f5f5;
}

.sell-form-input::placeholder {
    color: #ccc;
}

/* 到账金额显示 */
.sell-received-amount {
    color: #10b981 !important;
    font-weight: 600;
}

/* 提交按钮 */
.sell-submit-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.sell-submit-btn:hover {
    background: linear-gradient(135deg, #0b5ed7, #0a58ca);
}

.sell-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 挂售记录页面 */
.sell-records-container {
    padding: 16px;
    background: #f7f7f7;
    min-height: calc(100vh - 60px);
}

/* 记录列表 */
.sell-record-list {
    margin-bottom: 16px;
}

.sell-record-item {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sell-record-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.sell-record-row:last-child {
    margin-bottom: 0;
}

.sell-record-col {
    flex: 1;
}

.sell-record-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.sell-record-value {
    font-size: 14px;
    color: #333;
}

.sell-record-value.price {
    color: #0d6efd;
    font-weight: 600;
}

.sell-record-value.received {
    color: #10b981;
    font-weight: 600;
}

/* 状态标签 */
.sell-record-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.sell-record-status.selling {
    background: #fef3c7;
    color: #d97706;
}

.sell-record-status.sold {
    background: #d1fae5;
    color: #059669;
}

/* 时间 */
.sell-record-time {
    font-size: 12px;
    color: #999;
}

/* 空状态 */
.sell-empty-state {
    text-align: center;
    padding: 40px 20px;
}

.sell-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 40px;
    color: #ccc;
}

.sell-empty-text {
    font-size: 14px;
    color: #999;
}

/* 分页 */
.sell-pagination {
    padding: 16px 0;
}

/* 响应式 */
@media (max-width: 480px) {
    .sell-form-row {
        flex-direction: column;
    }
    
    .sell-form-item {
        width: 100%;
    }
}