/* ============================================
   个人中心页面 - mine.css
   ============================================ */

/* ---- 容器 ---- */
.mine-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px 100px;
}

/* ============================================
   用户卡片 Hero 区域
   ============================================ */
.mine-hero {
    position: relative;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    margin: 0 -16px 20px;
    padding: 36px 24px 28px;
}

.mine-hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #1a0a00 0%, #3d1f00 50%, #5a3010 100%);
}

.mine-hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(200,164,90,0.2) 0%, transparent 60%);
}

.mine-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.mine-hero-avatar {
    width: 68px; height: 68px;
    border-radius: 50%;
    border: 3px solid rgba(200,164,90,0.6);
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.mine-hero-info {
    flex: 1;
    min-width: 0;
}

.mine-hero-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.mine-hero-phone {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}

.mine-hero-btn {
    padding: 8px 20px;
    border-radius: 24px;
    border: 1.5px solid rgba(200,164,90,0.8);
    background: transparent;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex; align-items: center; gap: 6px;
    flex-shrink: 0;
}

.mine-hero-btn:hover {
    background: var(--primary);
    color: #fff;
}

.mine-hero-btn.logout {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7);
}

.mine-hero-btn.logout:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* ============================================
   Tab 标签（已移除，保留空位）
   ============================================ */

/* ============================================
   Tab 内容区
   ============================================ */
.mine-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 16px;
}

.mine-tab-body {
    padding: 8px 0;
    min-height: 100px;
}

.mine-loading {
    text-align: center;
    padding: 60px 0;
    color: #bbb;
    font-size: 14px;
}

.mine-loading i {
    font-size: 28px;
    display: block;
    margin-bottom: 10px;
}

.mine-empty {
    text-align: center;
    padding: 60px 0;
    color: #bbb;
}

.mine-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 14px;
}

.mine-empty p {
    font-size: 14px;
}

.mine-empty a {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary);
    font-size: 13px;
    text-decoration: underline;
}

/* ============================================
   出价记录项（卡片化）
   ============================================ */
.mine-record-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.15s;
}

.mine-record-item:hover {
    background: #fafafa;
}

.mine-record-item:last-child {
    border-bottom: none;
}

/* 领先中的卡片左边框 */
.mine-record-item.is-leading {
    border-left: 3px solid #27ae60;
    padding-left: 17px;
}

/* 被超越的卡片 */
.mine-record-item.is-outbid {
    border-left: 3px solid #e74c3c;
    padding-left: 17px;
    opacity: 0.75;
}

.mine-record-img {
    width: 64px; height: 64px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f8f5ef;
}

.mine-record-info {
    flex: 1;
    min-width: 0;
}

.mine-record-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mine-record-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.mine-record-status {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.record-status-active { background: #e8f8ef; color: #27ae60; }
.record-status-soon { background: #fff8e1; color: #f59e0b; }
.record-status-upcoming { background: #e8edf8; color: #5b7fc7; }
.record-status-ended { background: #f0f0f0; color: #999; }
.record-status-leading { background: #e8f8ef; color: #27ae60; }
.record-status-outbid { background: #fde8e8; color: #e74c3c; }
.record-status-won { background: #e8f8ef; color: #27ae60; }

.mine-record-right {
    text-align: right;
    flex-shrink: 0;
}

.mine-record-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

.mine-record-time {
    font-size: 11px;
    color: #bbb;
    margin-top: 2px;
}

.mine-record-del {
    background: none;
    border: none;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
    border-radius: 8px;
}

.mine-record-del:hover {
    color: #e74c3c;
    background: #fef0f0;
}

/* 收藏卡片倒计时 */
.mine-record-countdown {
    font-size: 11px;
    color: #e74c3c;
    margin-top: 2px;
}

/* ============================================
   设置区域（独立展示）
   ============================================ */
.mine-settings-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* ============================================
   设置列表
   ============================================ */
.settings-list {
    display: flex;
    flex-direction: column;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}

.settings-item:hover {
    background: #fafafa;
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: #f8f8f8;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.settings-info {
    flex: 1;
    min-width: 0;
}

.settings-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.settings-desc {
    font-size: 12px;
    color: #aaa;
}

.settings-arrow {
    font-size: 12px;
    color: #ccc;
    flex-shrink: 0;
}

.settings-item.danger .settings-title {
    color: #e74c3c;
}

/* ============================================
   关于信息
   ============================================ */
.mine-about {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
}

.mine-about-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    color: #888;
}

/* ============================================
   响应式 - 移动端
   ============================================ */
@media (max-width: 768px) {
    .mine-container {
        padding: 0 12px 100px;
    }

    .mine-hero {
        margin: 0 -12px 16px;
        padding: 32px 16px 24px;
        border-radius: 0 0 18px 18px;
    }

    .mine-hero-avatar {
        width: 56px; height: 56px;
    }

    .mine-hero-name {
        font-size: 18px;
    }

    .mine-hero-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    .mine-record-item {
        padding: 12px 16px;
        gap: 10px;
    }

    .mine-record-item.is-leading,
    .mine-record-item.is-outbid {
        padding-left: 13px;
    }

    .mine-record-img {
        width: 52px; height: 52px;
    }

    .mine-record-name {
        font-size: 13px;
    }

    .mine-record-price {
        font-size: 14px;
    }

    .settings-item {
        padding: 14px 16px;
    }

    .mine-about {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .mine-hero-content {
        flex-wrap: wrap;
    }

    .mine-hero-btn {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}
