/* ==========================================
   用户中心（User Center）
   主色：橙色 #ff5722（与主题一致）
   ========================================== */

.uc-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 20px 64px;
}

/* ===== 登录引导卡片 ===== */
.uc-login-card {
    max-width: 460px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 4px 20px rgba(15, 23, 40, 0.06);
}

.uc-login-card h1 {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 10px;
}

.uc-login-card p {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 28px;
}

.uc-login-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ===== 按钮 ===== */
.uc-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 10px;
    border: 1.5px solid #d1d5db;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.uc-btn:hover {
    border-color: #ff5722;
    color: #ff5722;
}

.uc-btn-primary {
    background: #ff5722;
    border-color: #ff5722;
    color: #fff;
}

.uc-btn-primary:hover {
    background: #e64a19;
    color: #fff;
}

.uc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== 顶部信息条 ===== */
.uc-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(15, 23, 40, 0.04);
}

.uc-topbar-id {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.uc-topbar-id > img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.uc-topbar-name {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 6px;
}

.uc-topbar-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.uc-tag {
    font-size: 12px;
    font-weight: 700;
    border-radius: 12px;
    padding: 3px 10px;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uc-tag-ok {
    color: #00a32a;
    background: #e6f7ec;
}

.uc-tag-company {
    color: #374151;
    background: #f3f4f6;
}

.uc-tag-warn {
    color: #b54708;
    background: #fff4e5;
}

.uc-topbar-balance {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: #fff4ef;
    border: 1px solid #ffd9c7;
    border-radius: 12px;
    padding: 12px 24px;
    flex-shrink: 0;
}

.uc-balance-num {
    font-size: 24px;
    font-weight: 800;
    color: #ff5722;
    line-height: 1.2;
}

.uc-balance-label {
    font-size: 12px;
    color: #b26a50;
    font-weight: 600;
}

/* ===== Tabs ===== */
.uc-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    overflow-x: auto;
    overflow-y: hidden;      /* 修复：防止 tab 下划线溢出触发纵向滚动条（上下箭头） */
    scrollbar-width: none;   /* Firefox 隐藏滚动条 */
    -ms-overflow-style: none;
}

.uc-tabs::-webkit-scrollbar {
    display: none;           /* Chrome/Safari 隐藏滚动条（移动端仍可横滑） */
}

.uc-tab {
    padding: 12px 18px;
    border: none;
    background: none;
    font-size: 14.5px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    border-radius: 8px 8px 0 0;
    transition: color 0.2s ease, background 0.2s ease;
}

.uc-tab::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: transparent;
    transition: background 0.2s ease;
}

.uc-tab:hover {
    color: #111827;
    background: #f6f7f9;
}

.uc-tab-active {
    color: #ff5722;
    background: #fff7f3;
}

.uc-tab-active::after {
    background: #ff5722;
}

.uc-panel {
    display: none;
}

.uc-panel-active {
    display: block;
    animation: ucFadeIn 0.25s ease;
}

@keyframes ucFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

/* ===== 卡片 ===== */
.uc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 26px 28px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(15, 23, 40, 0.04);
}

.uc-card-ok {
    border-color: #b7e4c7;
    background: #f7fdf9;
}

.uc-card-warn {
    border-color: #ffd9a8;
    background: #fffaf2;
}

.uc-card-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 6px;
}

.uc-card-sub {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px;
    line-height: 1.6;
}

.uc-empty {
    color: #9ca3af;
    font-size: 14px;
    padding: 12px 0;
}

/* ===== 充值档位 ===== */
.uc-recharge-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.uc-recharge-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.uc-recharge-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.uc-recharge-card:hover {
    border-color: #ffb199;
}

.uc-recharge-card.selected {
    border-color: #ff5722;
    background: #fff8f5;
}

.uc-recharge-usd {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
}

.uc-recharge-points {
    font-size: 15px;
    font-weight: 700;
    color: #ff5722;
}

.uc-recharge-bonus {
    font-size: 12px;
    color: #6b7280;
}

/* ===== 表单 ===== */
.uc-field {
    margin-bottom: 16px;
}

.uc-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
}

.uc-field input,
.uc-field select,
.uc-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #111827;
    background: #fff;
    transition: border-color 0.2s ease;
}

.uc-field input:focus,
.uc-field select:focus,
.uc-field textarea:focus {
    outline: none;
    border-color: #ff5722;
}

.uc-field textarea {
    resize: vertical;
    line-height: 1.6;
}

.uc-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.uc-req {
    color: #d63638;
}

.uc-hint-inline {
    font-weight: 400;
    color: #9ca3af;
    font-size: 12px;
}

.uc-char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.uc-pay-hint {
    font-size: 13px;
    color: #6b7280;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 0 0 16px;
    min-height: 20px;
    line-height: 1.5;
}

.uc-inline-msg {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    min-height: 18px;
}

.uc-inline-msg.ok {
    color: #00a32a;
}

.uc-inline-msg.error {
    color: #d63638;
}

/* ===== 认领状态提示 ===== */
.uc-claim-status {
    border-radius: 10px;
    padding: 13px 15px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.uc-claim-status a {
    color: inherit;
    font-weight: 700;
}

.uc-claim-status-pending {
    background: #fff4e5;
    color: #b54708;
}

.uc-claim-status-rejected {
    background: #fdecec;
    color: #d63638;
}

.uc-claim-reason {
    font-size: 12px;
    color: #d63638;
    margin-top: 4px;
    line-height: 1.5;
}

/* ===== 小按钮 / 幽灵按钮 ===== */
.uc-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

.uc-btn-ghost {
    background: transparent;
    border-color: transparent;
    color: #9aa1b0;
}

.uc-btn-ghost:hover {
    color: #d63638;
    border-color: transparent;
}

/* ===== 编辑公司资料 ===== */
.uc-field label small {
    font-weight: 400;
    color: #9aa1b0;
}

.uc-field-check label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
}

.uc-field-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color, #ff6a00);
}

/* ===== 评论管理 ===== */
.uc-reviews-empty {
    padding: 20px;
    background: #f8f9fb;
    border-radius: 10px;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

.uc-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.uc-review {
    border: 1px solid #e8eaef;
    border-radius: 12px;
    padding: 16px;
}

.uc-review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #374151;
}

.uc-review-date {
    font-size: 12px;
    color: #9aa1b0;
}

.uc-review-title {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1f2e;
}

.uc-review-content {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

.uc-review-reply {
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fb;
    border-radius: 10px;
}

.uc-review-reply label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.uc-review-reply-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #e3e6ec;
    border-radius: 8px;
    font-size: 13.5px;
    font-family: inherit;
    line-height: 1.5;
    color: #374151;
    resize: vertical;
    background: #fff;
}

.uc-review-reply-input:focus {
    outline: none;
    border-color: var(--primary-color, #ff6a00);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
}

.uc-review-reply-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.uc-review-reply-actions .uc-inline-msg {
    margin-top: 0;
    font-size: 13px;
}

/* ===== 表格 ===== */
.uc-table-wrap {
    overflow-x: auto;
}

.uc-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.uc-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 12px;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.uc-table td {
    padding: 12px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f0f1f3;
    vertical-align: top;
}

.uc-table tr:last-child td {
    border-bottom: none;
}

.uc-table td a {
    color: var(--primary-color, #ff6a00);
    font-weight: 600;
    text-decoration: none;
}

.uc-table td a:hover {
    text-decoration: underline;
}

.uc-amount-in {
    color: #00a32a;
    font-weight: 800;
}

/* ===== 产品相册上传 ===== */
.uc-file-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px dashed #d1d5db;
    border-radius: 10px;
    background: #fafafa;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.uc-file-input:hover {
    border-color: var(--primary-color, #ff6a00);
}

.uc-gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, 84px);
    gap: 10px;
    margin-top: 12px;
}

.uc-gallery-item {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.uc-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.uc-gallery-cover {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(255, 106, 0, 0.92);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 5px;
    line-height: 1.2;
}

.uc-gallery-del {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.65);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.uc-gallery-del:hover {
    background: #d63638;
}

.uc-amount-out {
    color: #d63638;
    font-weight: 800;
}

.uc-muted {
    color: #9ca3af;
}

/* ===== 状态徽章 ===== */
.uc-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    border-radius: 12px;
    padding: 3px 10px;
    white-space: nowrap;
}

.uc-status-review {
    color: #b54708;
    background: #fff4e5;
}

.uc-status-published {
    color: #00a32a;
    background: #e6f7ec;
}

.uc-status-draft {
    color: #6b7280;
    background: #f3f4f6;
}

.uc-status-rejected {
    color: #d63638;
    background: #fdecec;
}

/* ===== 公司信息 ===== */
.uc-company-info {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.uc-company-row {
    display: flex;
    gap: 14px;
    padding: 12px 16px;
    font-size: 14px;
    align-items: center;
}

.uc-company-row + .uc-company-row {
    border-top: 1px solid #f0f1f3;
}

.uc-company-row > span {
    width: 90px;
    flex-shrink: 0;
    color: #9ca3af;
    font-weight: 600;
}

.uc-company-row strong {
    color: #111827;
    word-break: break-word;
}

.uc-company-row a {
    color: #ff5722;
    font-weight: 600;
    text-decoration: none;
}

.uc-company-row a:hover {
    text-decoration: underline;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .uc-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .uc-topbar-balance {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .uc-recharge-tiers {
        grid-template-columns: 1fr;
    }

    .uc-field-row {
        grid-template-columns: 1fr;
    }

    .uc-card {
        padding: 20px 18px;
    }
}
