/* ==========================================================================
   用户中心（电脑端）· 组件样式
   设计令牌 / 主题主色 / 深色模式 统一由 site_theme.css 提供（全站共用）
   ========================================================================== */

/* ------------------------------------------------------------------ 布局 */
.uc-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 32px 64px;
}

.uc-grid {
    display: grid;
    grid-template-columns: 258px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.uc-side {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - 112px);
}

.uc-main {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* 无刷新切换：右侧内容加载态（侧栏保持不动） */
.uc-main.is-loading {
    pointer-events: none;
}

.uc-main.is-loading > * {
    opacity: 0.4;
}

/* 加载动画：横向对齐内容区中线（--uc-spin-left 由 user_center.js 写入），
   纵向固定在视口正中 —— 所以即使页面已经滚动到下方，视觉上动画依然居中。
   注意：居中必须用负 margin，不能占用 transform —— 旋转关键帧会整体覆盖
   transform，若把位移写在 transform 里，圆圈每转一圈就会往右下漂移一次。 */
.uc-main.is-loading::after {
    content: "";
    position: fixed;
    top: 50%;
    left: var(--uc-spin-left, 50%);
    width: 26px;
    height: 26px;
    box-sizing: border-box;
    margin: -13px 0 0 -13px;
    border: 3px solid color-mix(in srgb, var(--uc-primary, #2563eb) 24%, transparent);
    border-top-color: var(--uc-primary, #2563eb);
    border-radius: 50%;
    animation: uc-main-spin 0.7s linear infinite;
    z-index: 30;
}

@keyframes uc-main-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .uc-main.is-loading::after {
        animation-duration: 1.6s;
    }
}

/* ------------------------------------------------------------------ 侧栏 */
.uc-profile {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    padding: 20px 18px;
    border: 1px solid var(--uc-border);
    border-radius: var(--uc-radius-lg);
    background: var(--uc-surface);
    box-shadow: var(--uc-shadow);
    text-align: center;
}

.uc-profile::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 74px;
    background: linear-gradient(135deg, rgba(var(--uc-primary-rgb), .16), rgba(var(--uc-primary-rgb), .04));
}

.uc-profile-avatar {
    position: relative;
    display: block;
    margin: 0 auto;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--uc-surface-2);
    border: 3px solid var(--uc-surface);
    box-shadow: 0 2px 10px rgba(var(--uc-primary-rgb), .28);
}

.uc-profile-name {
    position: relative;
    margin: 10px 0 2px;
    font-size: 16px;
    font-weight: 700;
    color: var(--uc-text-strong);
    word-break: break-all;
}

.uc-profile-mail {
    position: relative;
    font-size: 12.5px;
    color: var(--uc-muted);
    word-break: break-all;
}

.uc-profile-tags {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.uc-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.uc-tag svg { width: 13px; height: 13px; }

.uc-tag.is-coin   { background: var(--uc-amber-soft); color: var(--uc-amber); }
.uc-tag.is-pro    { background: var(--uc-primary-soft); color: var(--uc-primary-ink); }
.uc-tag.is-free   { background: var(--uc-green-soft); color: var(--uc-green); }
.uc-tag.is-normal { background: var(--uc-violet-soft); color: var(--uc-violet); }
.uc-tag.is-support{ background: var(--uc-cyan-soft); color: var(--uc-cyan); }

.uc-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px;
    border: 1px solid var(--uc-border);
    border-radius: var(--uc-radius-lg);
    background: var(--uc-surface);
    box-shadow: var(--uc-shadow);
    scrollbar-width: thin;
    scrollbar-color: var(--uc-border-strong) transparent;
}

.uc-nav::-webkit-scrollbar { width: 6px; }
.uc-nav::-webkit-scrollbar-track { background: transparent; }
.uc-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--uc-border-strong);
}
.uc-nav::-webkit-scrollbar-thumb:hover { background: var(--uc-faint); }

.uc-nav-group + .uc-nav-group {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--uc-border);
}

.uc-nav-title {
    padding: 0 10px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--uc-muted);
}

.uc-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--uc-radius);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--uc-text);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.uc-nav-item svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    color: var(--uc-muted);
    transition: color .15s ease;
}

.uc-nav-item:hover {
    background: var(--uc-surface-2);
    color: var(--uc-text-strong);
}

.uc-nav-item:hover svg { color: var(--uc-primary-ink); }

.uc-nav-item.is-active {
    background: var(--uc-primary-soft);
    color: var(--uc-primary-ink);
    font-weight: 600;
}

.uc-nav-item.is-active svg { color: var(--uc-primary-ink); }

.uc-nav-item.is-active::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    border-radius: 0 3px 3px 0;
    background: var(--uc-primary);
}

/* 侧栏图标配色：每个入口一种颜色，便于快速识别（深色模式自动适配） */
.uc-nav-item.is-tone-blue   svg { color: var(--uc-primary-ink); }
.uc-nav-item.is-tone-indigo svg { color: var(--uc-indigo); }
.uc-nav-item.is-tone-violet svg { color: var(--uc-violet); }
.uc-nav-item.is-tone-pink   svg { color: var(--uc-pink); }
.uc-nav-item.is-tone-red    svg { color: var(--uc-red); }
.uc-nav-item.is-tone-amber  svg { color: var(--uc-amber); }
.uc-nav-item.is-tone-green  svg { color: var(--uc-green); }
.uc-nav-item.is-tone-teal   svg { color: var(--uc-teal); }
.uc-nav-item.is-tone-cyan   svg { color: var(--uc-cyan); }

.uc-nav-item .uc-nav-badge {
    margin-left: auto;
    min-width: 18px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--uc-red-soft);
    color: var(--uc-red);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.uc-nav-item .uc-nav-badge.is-amber {
    background: color-mix(in srgb, var(--uc-amber) 20%, transparent);
    color: var(--uc-amber);
}

/* 激活账号：仅未激活用户可见，用醒目样式方便快速找到（未选中不加底色） */
.uc-nav-item.is-highlight {
    color: var(--uc-amber);
    font-weight: 700;
}

.uc-nav-item.is-highlight svg { color: var(--uc-amber); }

.uc-nav-item.is-highlight:hover {
    background: var(--uc-surface-2);
    color: var(--uc-amber);
}

.uc-nav-item.is-highlight:hover svg { color: var(--uc-amber); }

.uc-nav-item.is-highlight.is-active {
    background: var(--uc-amber-soft);
    color: var(--uc-amber);
}

.uc-nav-item.is-highlight.is-active::before { background: var(--uc-amber); }

.uc-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    flex-shrink: 0;
    padding: 11px 14px;
    border: 1px solid var(--uc-border);
    border-radius: var(--uc-radius-lg);
    background: var(--uc-surface);
    box-shadow: var(--uc-shadow);
    color: var(--uc-red);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.uc-logout:hover {
    background: var(--uc-red-soft);
    border-color: transparent;
}

.uc-logout svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ 页头 */
.uc-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.uc-eyebrow {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--uc-primary-ink);
}

.uc-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--uc-text-strong);
}

.uc-subtitle {
    margin: 6px 0 0;
    font-size: 13.5px;
    color: var(--uc-muted);
}

.uc-crumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 12.5px;
    color: var(--uc-muted);
}

.uc-crumb a { color: var(--uc-muted); text-decoration: none; }
.uc-crumb a:hover { color: var(--uc-primary-ink); }
.uc-crumb svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ 卡片 */
.uc-card {
    border: 1px solid var(--uc-border);
    border-radius: var(--uc-radius-lg);
    background: var(--uc-surface);
    box-shadow: var(--uc-shadow);
    overflow: hidden;
}

.uc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--uc-border);
}

.uc-card-head.is-plain { border-bottom: 0; padding-bottom: 0; }

.uc-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--uc-text-strong);
}

.uc-card-desc {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--uc-muted);
}

.uc-card-body { padding: 20px; }

.uc-card-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--uc-border);
    background: var(--uc-surface-2);
}

/* ------------------------------------------------------------------ Hero */
.uc-hero {
    position: relative;
    overflow: hidden;
    padding: 26px 28px;
    border: 1px solid var(--uc-border);
    border-radius: var(--uc-radius-lg);
    background:
        linear-gradient(135deg, rgba(var(--uc-primary-rgb), .12), rgba(var(--uc-primary-rgb), .02)),
        var(--uc-surface);
    box-shadow: var(--uc-shadow);
}

.uc-hero-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--uc-text-strong);
}

.uc-hero-text {
    margin: 8px 0 0;
    font-size: 13.5px;
    color: var(--uc-muted);
}

.uc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.uc-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
}

.uc-hero-actions.is-flat { margin-top: 0; }

.uc-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.uc-muted-text { color: var(--uc-muted); font-size: 12.5px; }

/* ------------------------------------------------------------------ 统计 */
.uc-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.uc-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--uc-border);
    border-radius: var(--uc-radius-lg);
    background: var(--uc-surface);
    box-shadow: var(--uc-shadow);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.uc-stat:hover {
    border-color: var(--uc-border-strong);
    box-shadow: var(--uc-shadow-pop);
    transform: translateY(-1px);
}

.uc-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: var(--uc-radius);
    background: var(--uc-primary-soft);
    color: var(--uc-primary-ink);
}

.uc-stat-icon svg { width: 20px; height: 20px; }

.uc-stat-icon.is-amber  { background: var(--uc-amber-soft);  color: var(--uc-amber); }
.uc-stat-icon.is-green  { background: var(--uc-green-soft);  color: var(--uc-green); }
.uc-stat-icon.is-red    { background: var(--uc-red-soft);    color: var(--uc-red); }
.uc-stat-icon.is-violet { background: var(--uc-violet-soft); color: var(--uc-violet); }
.uc-stat-icon.is-cyan   { background: var(--uc-cyan-soft);   color: var(--uc-cyan); }
.uc-stat-icon.is-gray   { background: var(--uc-surface-2);   color: var(--uc-muted); }

.uc-stat-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--uc-text-strong);
}

.uc-stat-label {
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--uc-muted);
}

/* ------------------------------------------------------------------ 按钮 */
.uc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: var(--uc-radius);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}

.uc-btn svg { width: 16px; height: 16px; }

.uc-btn.primary {
    background: var(--uc-primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(var(--uc-primary-rgb), .28);
}

/* 主按钮 hover：在主题主色基础上加深（深色模式为提亮），并轻微抬起阴影 */
.uc-btn.primary:hover {
    background: var(--uc-primary-strong);
    box-shadow: 0 8px 20px rgba(var(--uc-primary-rgb), .34);
    filter: brightness(1.04);
}

.uc-btn.ghost {
    background: var(--uc-surface);
    border-color: var(--uc-border-strong);
    color: var(--uc-text);
}

.uc-btn.ghost:hover {
    border-color: var(--uc-primary);
    color: var(--uc-primary-ink);
    background: var(--uc-primary-soft);
}

.uc-btn.soft {
    background: var(--uc-primary-soft);
    color: var(--uc-primary-ink);
}

.uc-btn.soft:hover { background: rgba(var(--uc-primary-rgb), .16); }

.uc-btn.danger {
    background: var(--uc-red-soft);
    color: var(--uc-red);
}

.uc-btn.danger:hover { background: rgba(220, 38, 38, .16); }

.uc-btn.block { width: 100%; }
.uc-btn.sm { padding: 7px 12px; font-size: 12.5px; }
.uc-btn.lg { padding: 12px 22px; font-size: 14.5px; }

.uc-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    box-shadow: none;
}

/* 签到完成等「已完成」状态 */
.uc-btn.is-done {
    background: var(--uc-green-soft);
    color: var(--uc-green);
    border-color: color-mix(in srgb, var(--uc-green) 30%, transparent);
    box-shadow: none;
    cursor: default;
}

.uc-btn.is-done svg { color: var(--uc-green); }

.uc-btn.is-done:hover {
    background: var(--uc-green-soft);
    filter: none;
}

.uc-btn.is-done:disabled {
    opacity: 1;
    cursor: default;
}

/* ------------------------------------------------------------------ 表单 */
.uc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.uc-field + .uc-field { margin-top: 16px; }

.uc-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--uc-muted);
}

.uc-input,
.uc-select,
.uc-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--uc-border-strong);
    border-radius: var(--uc-radius);
    background: var(--uc-surface);
    color: var(--uc-text);
    font-size: 13.5px;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.uc-textarea { resize: vertical; min-height: 96px; line-height: 1.6; }

.uc-input:focus,
.uc-select:focus,
.uc-textarea:focus {
    outline: none;
    border-color: var(--uc-primary);
    box-shadow: 0 0 0 3px var(--uc-primary-ring);
}

.uc-input:disabled,
.uc-input[readonly] {
    background: var(--uc-surface-2);
    color: var(--uc-muted);
    cursor: not-allowed;
}

.uc-input::placeholder,
.uc-textarea::placeholder { color: var(--uc-muted); }

.uc-hint {
    font-size: 12px;
    line-height: 1.6;
    color: var(--uc-muted);
}

.uc-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.uc-inline .uc-input { flex: 1 1 auto; min-width: 0; }

.uc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.uc-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--uc-border);
}

/* ------------------------------------------------------------------ 徽章 */
.uc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.uc-badge svg { width: 12px; height: 12px; }

.uc-badge.is-blue   { background: var(--uc-primary-soft); color: var(--uc-primary-ink); }
.uc-badge.is-green  { background: var(--uc-green-soft);   color: var(--uc-green); }
.uc-badge.is-amber  { background: var(--uc-amber-soft);   color: var(--uc-amber); }
.uc-badge.is-red    { background: var(--uc-red-soft);     color: var(--uc-red); }
.uc-badge.is-violet { background: var(--uc-violet-soft);  color: var(--uc-violet); }
.uc-badge.is-gray   { background: var(--uc-surface-2);    color: var(--uc-muted); }

/* ------------------------------------------------------------------ 列表行 */
.uc-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
}

.uc-row + .uc-row { border-top: 1px solid var(--uc-border); }

.uc-row-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 11px;
    object-fit: cover;
    background: var(--uc-surface-2);
    border: 1px solid var(--uc-border);
}

.uc-row-main { flex: 1 1 auto; min-width: 0; }

.uc-row-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--uc-text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uc-row-meta {
    margin-top: 3px;
    font-size: 12.5px;
    color: var(--uc-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uc-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.uc-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

/* ------------------------------------------------------------------ 点评列表 */
.uc-review-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.uc-review {
    display: flex;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--uc-border);
    border-radius: var(--uc-radius-lg);
    background: var(--uc-surface);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.uc-review:hover {
    border-color: var(--uc-border-strong);
    box-shadow: var(--uc-shadow);
}

.uc-review-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--uc-surface-2);
    border: 1px solid var(--uc-border);
}

.uc-review-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.uc-review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.uc-review-app {
    max-width: 100%;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--uc-text-strong);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.uc-review-app:hover { color: var(--uc-primary-ink); }

.uc-review-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.uc-review-score .uc-score-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--uc-amber);
}

.uc-review-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--uc-text);
    word-break: break-word;
}

.uc-review-text.is-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.uc-review-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}

.uc-review-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: var(--uc-faint);
}

.uc-review-date svg { width: 13px; height: 13px; }

.uc-review-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 紧凑版：用于首页「最近点评」卡片 */
.uc-review.is-compact { padding: 12px; gap: 12px; }
.uc-review.is-compact .uc-review-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 10px; }
.uc-review.is-compact .uc-review-app { font-size: 13.5px; }
.uc-review.is-compact .uc-review-text { font-size: 12.5px; }

/* --------------------------------------------------- 应用列表（我的收藏 / 我的递交） */
.uc-app-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.uc-app-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border: 1px solid var(--uc-border);
    border-radius: var(--uc-radius-lg);
    background: var(--uc-surface);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.uc-app-item:hover {
    border-color: var(--uc-border-strong);
    box-shadow: var(--uc-shadow);
    transform: translateY(-1px);
}

.uc-app-item-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 13px;
    object-fit: cover;
    background: var(--uc-surface-2);
    border: 1px solid var(--uc-border);
}

.uc-app-item-main {
    flex: 1 1 auto;
    min-width: 0;
}

.uc-app-item-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.uc-app-item-name {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--uc-text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uc-app-item-version {
    flex: 0 0 auto;
    padding: 1px 7px;
    border-radius: 5px;
    background: var(--uc-surface-3);
    color: var(--uc-muted);
    font-size: 11.5px;
    font-weight: 600;
}

.uc-app-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
}

.uc-app-item-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 5px;
    background: var(--uc-surface-2);
    color: var(--uc-muted);
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
}

.uc-app-item-chip svg { width: 12px; height: 12px; }
.uc-app-item-chip.is-os   { background: var(--uc-violet-soft); color: var(--uc-violet); }
.uc-app-item-chip.is-size { background: var(--uc-cyan-soft);   color: var(--uc-cyan); }
.uc-app-item-chip.is-arch { background: var(--uc-indigo-soft); color: var(--uc-indigo); }

.uc-app-item-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--uc-faint);
}

.uc-app-item-date svg { width: 12px; height: 12px; }

/* 拒绝原因（仅未通过的递交展示） */
.uc-app-item-refuse {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 9px 0 0;
    padding: 7px 10px;
    border: 1px solid var(--uc-red-soft);
    border-radius: var(--uc-radius);
    background: var(--uc-red-soft);
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--uc-red);
}

.uc-app-item-refuse svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin-top: 2px;
}

.uc-app-item-refuse span { overflow-wrap: anywhere; }

.uc-app-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.uc-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--uc-border);
    border-radius: var(--uc-radius);
    background: var(--uc-surface);
    color: var(--uc-muted);
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.uc-icon-btn svg { width: 15px; height: 15px; }

.uc-icon-btn:hover { color: var(--uc-red); border-color: var(--uc-red); background: var(--uc-red-soft); }
.uc-icon-btn.is-primary:hover { color: var(--uc-primary-ink); border-color: var(--uc-primary); background: var(--uc-primary-soft); }

/* ------------------------------------------------------------------ 空状态 */
.uc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 48px 20px;
    text-align: center;
    color: var(--uc-muted);
}

.uc-empty svg { width: 38px; height: 38px; opacity: .6; }
.uc-empty p { margin: 0; font-size: 13.5px; }

/* ------------------------------------------------------------------ 分页 */
/* 分页项本身的外观由全站统一样式提供（view/public/pc/header.html 的 .pagination），
   这里只负责用户中心的排版：左侧页码统计 + 右侧分页条，上方一条分隔线。 */
.uc-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--uc-border);
}

.uc-page-total { font-size: 12.5px; color: var(--uc-muted); }

/* ------------------------------------------------------------------ 开关 */
.uc-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--uc-border);
    border-radius: var(--uc-radius);
    background: var(--uc-surface-2);
}

.uc-switch { position: relative; display: inline-flex; flex: 0 0 auto; cursor: pointer; }
.uc-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.uc-switch-slider {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: var(--uc-border-strong);
    transition: background .18s ease;
}

.uc-switch-slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(26, 34, 51, .28);
    transition: transform .18s ease;
}

.uc-switch input:checked + .uc-switch-slider { background: var(--uc-primary); }
.uc-switch input:checked + .uc-switch-slider::after { transform: translateX(20px); }

/* ------------------------------------------------------------------ 选择卡 */
.uc-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid var(--uc-border-strong);
    border-radius: var(--uc-radius);
    background: var(--uc-surface);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.uc-option + .uc-option { margin-top: 10px; }

.uc-option:hover { border-color: var(--uc-primary); background: var(--uc-surface-2); }

.uc-option input {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    accent-color: var(--uc-primary);
    cursor: pointer;
}

.uc-option-title { font-size: 14px; font-weight: 600; color: var(--uc-text-strong); }
.uc-option-desc { margin-top: 3px; font-size: 12.5px; color: var(--uc-muted); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

.uc-option.is-checked { border-color: var(--uc-primary); background: var(--uc-primary-soft); }

.uc-option.is-disabled {
    cursor: not-allowed;
    opacity: .66;
    background: var(--uc-surface-2);
}

.uc-option.is-disabled:hover {
    border-color: var(--uc-border-strong);
    background: var(--uc-surface-2);
}

.uc-option.is-disabled input { cursor: not-allowed; }

.uc-option.is-checked.is-disabled {
    border-color: var(--uc-border-strong);
    background: var(--uc-surface-2);
}

/* 包信息（递交编辑页，只读展示；样式对齐应用详情页「兼容性与技术信息」） */
.uc-info-panel {
    padding: 18px 20px;
    border: 1px solid var(--uc-border);
    border-radius: var(--uc-radius);
    background: var(--uc-surface);
}

.uc-info-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.uc-info-heading h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--uc-text-strong);
}

.uc-info-pill {
    padding: 2px 8px;
    border-radius: var(--uc-radius);
    background: var(--uc-surface-2);
    color: var(--uc-muted);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.uc-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.uc-info-grid > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--uc-radius);
    background: var(--uc-surface-2);
    font-size: 13px;
}

.uc-info-grid > div.is-wide { grid-column: 1 / -1; }

/* 兼容设备：与「最低 iOS 版本」同行，无标签，芯片居中 */
.uc-info-grid > div.is-device { justify-content: center; }

.uc-info-grid > div > span {
    flex-shrink: 0;
    color: var(--uc-muted);
}

.uc-info-grid > div > strong {
    color: var(--uc-text-strong);
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}

.uc-info-grid .device-compat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* 设备兼容徽标 */
.device-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border: 1px solid transparent;
    border-radius: var(--uc-radius);
    font-size: 13px;
    font-weight: 600;
}

.device-chip svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.device-chip .device-name {
    color: var(--uc-text-strong);
    font-weight: 600;
}

.device-chip .device-status {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

.device-chip.is-ok {
    background: var(--uc-green-soft);
    border-color: var(--uc-green);
}

.device-chip.is-ok svg { color: var(--uc-green); }

.device-chip.is-ok .device-status {
    background: var(--uc-green);
    color: #fff;
}

.device-chip.is-no {
    background: var(--uc-red-soft);
    border-color: var(--uc-red);
}

.device-chip.is-no svg { color: var(--uc-red); }

.device-chip.is-no .device-status {
    background: var(--uc-red);
    color: #fff;
}

/* 颜色 / 主题选择块 */
.uc-swatch-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.uc-swatch {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--uc-border-strong);
    border-radius: var(--uc-radius);
    background: var(--uc-surface);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.uc-swatch:hover { border-color: var(--uc-primary); }

.uc-swatch.is-active {
    border-color: var(--uc-primary);
    box-shadow: 0 0 0 3px var(--uc-primary-ring);
}

.uc-swatch.is-active::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--uc-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

.uc-swatch-preview {
    height: 46px;
    border-radius: var(--uc-radius);
    border: 1px solid var(--uc-border);
}

.uc-swatch-name { font-size: 12.5px; font-weight: 600; color: var(--uc-text); }

.uc-theme-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 74px;
    padding: 10px;
    border-radius: var(--uc-radius);
    border: 1px solid var(--uc-border);
}

.uc-theme-preview span { display: block; height: 8px; border-radius: 4px; }

/* ------------------------------------------------------------------ 其它 */
.uc-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.uc-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--uc-radius);
    background: var(--uc-primary-soft);
    color: var(--uc-primary-ink);
    font-size: 13px;
    line-height: 1.7;
}

.uc-note svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; }

.uc-note.is-warn { background: var(--uc-amber-soft); color: var(--uc-amber); }
.uc-note.is-danger { background: var(--uc-red-soft); color: var(--uc-red); }

.uc-steps { display: flex; flex-direction: column; gap: 18px; }
.uc-step-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--uc-text-strong); margin: 0 0 8px; }
.uc-step-title .uc-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--uc-primary); color: #fff; font-size: 11px; font-weight: 700;
}

.uc-code {
    display: inline-block;
    padding: 3px 9px;
    border-radius: var(--uc-radius);
    background: var(--uc-surface-2);
    border: 1px solid var(--uc-border);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    color: var(--uc-primary-ink);
}

.uc-img {
    max-width: 100%;
    border-radius: var(--uc-radius);
    border: 1px solid var(--uc-border);
}

.uc-list-plain { list-style: none; margin: 0; padding: 0; }
.uc-list-plain li { position: relative; padding-left: 18px; font-size: 13px; line-height: 1.9; color: var(--uc-muted); }
.uc-list-plain li::before {
    content: ""; position: absolute; left: 4px; top: 11px;
    width: 5px; height: 5px; border-radius: 50%; background: var(--uc-primary);
}

.uc-stars { display: inline-flex; gap: 2px; color: var(--uc-gold); }
.uc-stars svg { width: 15px; height: 15px; fill: currentColor; }
.uc-stars .is-off { color: var(--uc-gold); fill: none; }

/* ------------------------------------------------------------------ 信息列表 */
/* ------------------------------------------------------------------ 上传 */
.uc-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 42px 24px;
    border: 1.5px dashed var(--uc-border-strong);
    border-radius: var(--uc-radius);
    background: var(--uc-surface-2);
    text-align: center;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.uc-dropzone:hover,
.uc-dropzone.dragover {
    border-color: var(--uc-primary);
    background: var(--uc-primary-soft);
}

.uc-dropzone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: var(--uc-primary-soft);
    color: var(--uc-primary-ink);
}

.uc-dropzone-icon svg { width: 30px; height: 30px; }

.uc-dropzone-title { font-size: 17px; font-weight: 700; color: var(--uc-text-strong); }
.uc-dropzone-desc { margin-top: 8px; font-size: 13px; color: var(--uc-muted); }
.uc-dropzone-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }

.uc-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 20px;
}

.uc-file-row + .uc-file-row { border-top: 1px solid var(--uc-border); }

.uc-file-empty { padding: 18px 20px; font-size: 13px; color: var(--uc-muted); }

.uc-progress {
    height: 10px;
    border-radius: 999px;
    background: var(--uc-surface-2);
    overflow: hidden;
}

.uc-progress > i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--uc-primary);
    transition: width .3s ease;
}

.uc-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
}

.uc-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--uc-border);
}

.uc-info-label { font-size: 13px; color: var(--uc-muted); flex: 0 0 auto; }

.uc-info-value {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--uc-text-strong);
    text-align: right;
    word-break: break-all;
}

/* 账户概览头部 */
.uc-account-head {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.uc-account-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--uc-border);
    background: var(--uc-surface-2);
}

.uc-account-name { font-size: 19px; font-weight: 700; color: var(--uc-text-strong); }
.uc-account-mail { margin-top: 4px; font-size: 13px; color: var(--uc-muted); word-break: break-all; }
.uc-account-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ------------------------------------------------------------------ 社区论坛（我的帖子 / 评论 / 点赞） */
.uc-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.uc-hub-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--uc-border);
    border-radius: var(--uc-radius-lg);
    background: var(--uc-surface);
    box-shadow: var(--uc-shadow);
    transition: border-color .15s ease, transform .15s ease;
}

.uc-hub-card:hover { border-color: var(--uc-primary); transform: translateY(-2px); }

.uc-hub-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 12px;
    background: var(--uc-primary-soft);
    color: var(--uc-primary-ink);
}

.uc-hub-icon svg { width: 22px; height: 22px; }
.uc-hub-icon.is-cyan { background: var(--uc-cyan-soft); color: var(--uc-cyan); }
.uc-hub-icon.is-red { background: var(--uc-red-soft); color: var(--uc-red); }
.uc-hub-icon.is-amber { background: var(--uc-amber-soft); color: var(--uc-amber); }

.uc-hub-main { flex: 1 1 auto; min-width: 0; }
.uc-hub-title { display: block; font-size: 14.5px; font-weight: 700; color: var(--uc-text-strong); }
.uc-hub-desc { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.6; color: var(--uc-muted); }
.uc-hub-count { flex: 0 0 auto; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--uc-primary-ink); }

.uc-forum-list { display: flex; flex-direction: column; }

.uc-forum-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    color: inherit;
}

.uc-forum-item + .uc-forum-item { border-top: 1px solid var(--uc-border); }
.uc-forum-item-main { flex: 1 1 auto; min-width: 0; }

.uc-forum-item-title {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--uc-text-strong);
    transition: color .15s ease;
}

.uc-forum-item:hover .uc-forum-item-title { color: var(--uc-primary-ink); }

.uc-forum-item-summary {
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--uc-muted);
}

.uc-forum-item-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
}

.uc-forum-time { font-size: 12px; color: var(--uc-faint); }

.uc-forum-item-stats {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 14px;
    padding-top: 2px;
    font-size: 12.5px;
    color: var(--uc-muted);
}

.uc-forum-item-stats span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.uc-forum-item-stats svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ 我的评论
   这是「评论」列表：评论内容最大最重，帖子标题降级为次要的来源信息 */
.uc-comment-list { display: flex; flex-direction: column; }

.uc-comment-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 0;
    color: inherit;
}

.uc-comment-item + .uc-comment-item { border-top: 1px solid var(--uc-border); }

/* 左侧竖条：把「引用内容」框起来，悬停时点亮为品牌色 */
.uc-comment-item-main {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 15px;
    border-left: 3px solid var(--uc-border-strong);
    border-radius: 2px;
    transition: border-color .18s ease;
}

.uc-comment-item:hover .uc-comment-item-main { border-left-color: var(--uc-primary); }

.uc-comment-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--uc-text-strong);
    word-break: break-word;
}

.uc-comment-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.uc-comment-source {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 5px;
    min-width: 0;
    max-width: 380px;
    font-size: 12.5px;
    color: var(--uc-muted);
    transition: color .18s ease;
}

.uc-comment-source svg { width: 13px; height: 13px; flex: 0 0 auto; }

.uc-comment-source-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uc-comment-item:hover .uc-comment-source { color: var(--uc-primary-ink); }

.uc-comment-item-stats {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    padding-top: 3px;
    font-size: 12.5px;
    color: var(--uc-muted);
}

.uc-comment-item-stats span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.uc-comment-item-stats svg { width: 14px; height: 14px; }

/* 用户中心的分段切换标签（点赞的帖子 / 点赞的评论）：
   槽底色比论坛首页再深一档，白色选中胶囊对比更明显 */
.uc-page-head .fh-tabs { background: #e6ebf2; }

@media (max-width: 1180px) {
    .uc-hub-grid { grid-template-columns: minmax(0, 1fr); }
}

