/* ========== 用户中心（编辑风 · A1 精修侧栏）========== */

.uc-container {
    --uc-ink: var(--ed-ink, #141413);
    --uc-ink-2: var(--ed-dark, #30302e);
    --uc-olive: var(--ed-olive, #5e5d59);
    --uc-stone: var(--ed-stone, #87867f);
    --uc-line: #e6e3d9;
    --uc-line-soft: #efede6;
    --uc-paper: var(--ed-ivory, #faf9f5);
    --uc-page-bg: var(--ed-paper, #f5f4ed);
    --uc-terra: var(--ed-terracotta, #c96442);
    --uc-terra-dark: #b5563a;
    --uc-terra-soft: #f7e9e2;
    --uc-serif: var(--ed-serif, "Source Serif 4", Georgia, serif);
    --uc-sans: var(--ed-sans, system-ui, -apple-system, "Segoe UI", Arial, sans-serif);
    --uc-green: #2f7d4f;
    --uc-green-soft: #e3f1e7;
    --uc-amber: #9a5b13;
    --uc-amber-soft: #fbefdc;
    --uc-grey-soft: #eceae3;

    max-width: 1120px;
    margin: 0 auto;
    color: var(--uc-ink);
}

/* ========== 布局：侧栏 + 内容 ========== */
.uc-layout {
    display: grid;
    /* 侧栏需容纳最长语种文案（日文サブスクリプション） */
    grid-template-columns: 216px minmax(0, 1fr);
    gap: 44px;
}

.uc-sidebar {
    height: fit-content;
    position: sticky;
    top: 100px;
}

.uc-side-label {
    font-family: var(--uc-sans);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--uc-stone);
    margin: 4px 0 10px 12px;
}

.uc-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.uc-nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    background: transparent;
    border: 0;
    border-radius: 9px;
    color: var(--uc-ink-2);
    font-size: 14.5px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}

.uc-nav-item .uc-nav-icon {
    color: var(--uc-olive);
}

.uc-nav-item:hover {
    background: #ebe8df;
    color: var(--uc-ink);
}

.uc-nav-item.active {
    background: var(--uc-terra-soft);
    color: var(--uc-terra-dark);
    font-weight: 600;
}

.uc-nav-item.active .uc-nav-icon {
    color: var(--uc-terra);
}

.uc-nav-item:focus-visible,
.uc-action:focus-visible,
.uc-load-more-btn:focus-visible,
.uc-work-row:focus-visible {
    outline: 2px solid var(--uc-terra);
    outline-offset: 2px;
}

/* 帮助文档：外链，与上方标签用细线分隔 */
.uc-nav-link {
    margin-top: 8px;
    height: 48px;
    padding-top: 8px;
    border-top: 1px solid var(--uc-line);
    border-radius: 0;
}

.uc-nav-link:hover {
    background: transparent;
}

.uc-nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.uc-nav-ext {
    width: 13px;
    height: 13px;
    margin-left: auto;
    opacity: 0.5;
    flex-shrink: 0;
}

.uc-nav-label {
    white-space: nowrap;
}

/* 手机端标签三等分，长文案（日文サブスクリプション）用简称 */
.uc-nav-label--short {
    display: none;
}

/* ========== 内容区 ========== */
.uc-main {
    min-width: 0; /* 允许网格列收缩，长标题触发省略号而非溢出 */
}

.uc-tab-pane {
    display: none;
}

.uc-tab-pane.active {
    display: block;
    animation: ucFadeIn 0.25s ease;
}

@keyframes ucFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.uc-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 36px;
    margin-bottom: 18px;
}

.uc-page-title {
    font-family: var(--uc-serif);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.005em;
    color: var(--uc-ink);
    margin: 0;
}

/* 标题后的数量说明（如作品数），与标题同一行 */
.uc-page-sub {
    margin-left: 10px;
    font-family: var(--uc-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--uc-stone);
}

.uc-page-sub:empty {
    display: none;
}

/* #user-center 提高优先级：全站 editorial 规则把 h2/h3 统一设为衬线（:root[data-style] h3） */
#user-center .uc-sec-title {
    font-family: var(--uc-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--uc-ink);
    margin: 30px 0 10px;
}

/* 白底面板：各状态的统一承载容器 */
.uc-sheet {
    background: #ffffff;
    border: 1px solid #e8e6dc;
    border-radius: 12px;
    overflow: hidden;
}

/* ========== 按钮 ========== */
.uc-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease;
}

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

.uc-action--primary {
    background: var(--uc-terra);
    color: #ffffff;
}

.uc-action--primary:hover {
    background: var(--uc-terra-dark);
    color: #ffffff;
}

.uc-action--ghost {
    background: #ffffff;
    color: var(--uc-ink);
    border-color: #d9d6cc;
}

.uc-action--ghost:hover {
    background: var(--uc-paper);
    border-color: #bdbab0;
}

.uc-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.uc-load-more-container {
    display: flex;
    justify-content: center;
    padding-top: 16px;
}

.uc-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid #d9d6cc;
    border-radius: 9px;
    color: var(--uc-ink);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.uc-load-more-btn:hover {
    background: var(--uc-paper);
    border-color: #bdbab0;
}

/* 加载中：禁用点击 + 前置转圈，让用户知道请求在处理 */
.uc-load-more-btn.is-loading {
    cursor: wait;
    color: var(--uc-olive);
}

.uc-load-more-btn.is-loading::before {
    content: '';
    width: 13px;
    height: 13px;
    margin-right: 8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: uc-spin 0.7s linear infinite;
}

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

/* 空状态 / 错误状态 */
.uc-empty {
    padding: 36px 28px;
}

.uc-empty-title {
    font-family: var(--uc-serif);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--uc-ink);
}

.uc-empty-desc {
    margin: 0 0 18px;
    color: var(--uc-olive);
    max-width: 52ch;
}

.uc-empty-desc:last-child {
    margin-bottom: 0;
}

.uc-note-muted {
    padding: 18px;
    color: var(--uc-stone);
}

.uc-note-error {
    padding: 18px;
    color: #b42318;
}

/* ========== 作品列表 ========== */
.uc-work-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-top: 1px solid var(--uc-line-soft);
    cursor: pointer;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    transition: background 150ms ease, opacity 200ms ease, transform 200ms ease;
}

.uc-work-row:first-child {
    border-top: 0;
}

.uc-work-row:hover {
    background: #fcfbf8;
}

/* 书脊缩略：接口暂无封面图，用标题首字 + 按标题固定生成的底色 */
.uc-work-thumb {
    position: relative;
    width: 36px;
    height: 44px;
    border-radius: 3px 6px 6px 3px;
    box-shadow: inset 3px 0 0 rgba(0, 0, 0, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.95);
    font-family: var(--uc-serif);
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
}

#user-center .uc-work-title {
    font-family: var(--uc-sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--uc-ink);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uc-work-meta {
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--uc-stone);
    font-variant-numeric: tabular-nums;
}

.uc-work-open {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--uc-olive);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 150ms ease;
}

.uc-work-row:hover .uc-work-open {
    color: var(--uc-terra);
}

.uc-work-open svg {
    width: 14px;
    height: 14px;
}

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

/* ========== 作品多选删除 ========== */
.uc-page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 书脊上的勾选框：常态隐藏，悬停行或已有选中时显示（替换首字） */
.uc-work-letter {
    transition: opacity 140ms ease;
}

.uc-work-check {
    position: absolute;
    inset: 0;
    width: 18px;
    height: 18px;
    margin: auto;
    border: 1.5px solid #ffffff;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9) center / 12px 12px no-repeat;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease, background-color 140ms ease;
}

.uc-work-row.is-selected .uc-work-check {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c96442' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
}

.uc-works-list.is-selecting .uc-work-check {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.uc-works-list.is-selecting .uc-work-letter {
    opacity: 0;
}

/* 仅真正支持悬停的设备才悬停露出勾选框；触屏走长按 */
@media (hover: hover) {
    .uc-work-row:hover .uc-work-check {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .uc-work-row:hover .uc-work-letter {
        opacity: 0;
    }
}

.uc-work-row.is-selected,
.uc-work-row.is-selected:hover {
    background: #f9efe9;
}

/* 选中行书脊外加陶土色描边 */
.uc-work-row.is-selected .uc-work-thumb {
    box-shadow: inset 3px 0 0 rgba(0, 0, 0, 0.14), 0 0 0 2px #ffffff, 0 0 0 3.5px var(--uc-terra);
}

/* 多选中点击行是勾选而非打开，隐藏 Open 避免误导 */
.uc-works-list.is-selecting .uc-work-open {
    visibility: hidden;
}

/* 删除时行收起 */
.uc-work-row.is-removing {
    opacity: 0;
    transform: translateX(-8px);
}

/* 页头选择栏：有选中时替换标题与 New project */
#tab-works.is-selecting .uc-page-title,
#tab-works.is-selecting .uc-page-actions {
    display: none;
}

.uc-selection-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-height: 36px;
    animation: ucSelectionIn 160ms ease;
}

.uc-selection-bar[hidden] {
    display: none;
}

@keyframes ucSelectionIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: none; }
}

.uc-icon-btn {
    width: 36px;
    height: 36px;
    margin-left: -8px;
    border: 0;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--uc-olive);
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}

@media (hover: hover) {
    .uc-icon-btn:hover {
        background: var(--uc-grey-soft);
        color: var(--uc-ink);
    }
}

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

.uc-selection-count {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--uc-ink);
    font-variant-numeric: tabular-nums;
}

.uc-action--danger-text {
    background: transparent;
    color: #b3261e;
}

@media (hover: hover) {
    .uc-action--danger-text:hover:not(:disabled) {
        background: #fbeceb;
    }
}

.uc-action--danger {
    background: #b3261e;
    color: #ffffff;
}

.uc-action--danger:hover {
    background: #9a1f18;
    color: #ffffff;
}

/* 删除后的撤销提示：底部居中深色条 */
.uc-undo-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 8px 8px 16px;
    background: #1f1e1b;
    color: #ffffff;
    border-radius: 12px;
    font-size: 13.5px;
    white-space: nowrap;
    box-shadow: 0 14px 34px -10px rgba(20, 20, 19, 0.45);
    transform: translateX(-50%);
    animation: ucUndoIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.uc-undo-toast[hidden] {
    display: none;
}

.uc-undo-toast button {
    height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #f3a88f;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.uc-undo-toast button:hover {
    background: rgba(255, 255, 255, 0.08);
}

@keyframes ucUndoIn {
    from { opacity: 0; transform: translate(-50%, 12px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* ========== 确认弹窗 ========== */
.uc-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(20, 20, 19, 0.45);
    opacity: 0;
    transition: opacity 200ms ease;
}

.uc-confirm-overlay.is-open {
    opacity: 1;
}

.uc-confirm-dialog {
    width: 100%;
    max-width: 400px;
    padding: 22px 22px 18px;
    background: #ffffff;
    border: 1px solid #e8e6dc;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(20, 20, 19, 0.18);
    transform: translateY(6px);
    transition: transform 200ms ease;
}

.uc-confirm-overlay.is-open .uc-confirm-dialog {
    transform: translateY(0);
}

#user-center .uc-confirm-title,
.uc-confirm-title {
    margin: 0 0 6px;
    font-family: var(--uc-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--uc-ink);
}

.uc-confirm-message {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--uc-olive);
}

.uc-confirm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ========== 积分 ========== */
.uc-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 22px;
}

.uc-balance-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--uc-olive);
}

.uc-balance-amount {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 4px;
}

.uc-balance-value {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--uc-ink);
    font-variant-numeric: tabular-nums;
}

.uc-balance-unit {
    font-size: 14px;
    color: var(--uc-stone);
}

/* 积分明细 / 积分记录：同一份表格，窄屏由 CSS 转为堆叠行 */
.uc-ledger {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.uc-ledger th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--uc-olive);
    padding: 11px 18px;
    background: #fbfaf7;
    border-bottom: 1px solid var(--uc-line-soft);
    white-space: nowrap;
}

.uc-ledger td {
    padding: 13px 18px;
    border-top: 1px solid #f2f0ea;
    vertical-align: middle;
    color: var(--uc-ink-2);
}

.uc-ledger tbody tr:first-child td {
    border-top: 0;
}

.uc-ledger .is-right {
    text-align: right;
}

.uc-ledger-main {
    font-weight: 600;
    color: var(--uc-ink);
}

.uc-ledger-date {
    color: var(--uc-stone);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.uc-bk-balance {
    font-weight: 600;
    color: var(--uc-ink);
    font-variant-numeric: tabular-nums;
}

.uc-bk-of {
    color: var(--uc-stone);
    font-variant-numeric: tabular-nums;
}

.uc-meter {
    width: 120px;
    height: 4px;
    margin-top: 6px;
    border-radius: 4px;
    background: var(--uc-line-soft);
    overflow: hidden;
}

.uc-meter i {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: var(--uc-terra);
}

.uc-ledger-label {
    display: none;
}

/* 来源：客服描述可能较长，限制宽度自动换行，完整显示 */
.uc-src {
    display: inline-block;
    max-width: 280px;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
}

.uc-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--uc-line-soft);
    color: var(--uc-stone);
    font-size: 11.5px;
    font-weight: 500;
    vertical-align: 1px;
    white-space: nowrap;
}

.uc-never {
    color: var(--uc-green);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.uc-amount-positive {
    color: var(--uc-green);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.uc-amount-negative {
    color: var(--uc-ink);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ========== 订阅 ========== */
.uc-plan {
    padding: 22px 24px;
}

.uc-plan-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.uc-plan-name {
    font-family: var(--uc-serif);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--uc-ink);
}


.uc-plan-price {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--uc-olive);
    font-variant-numeric: tabular-nums;
}

.uc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.uc-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.uc-pill--active { color: var(--uc-green); background: var(--uc-green-soft); }
.uc-pill--canceled { color: var(--uc-amber); background: var(--uc-amber-soft); }
.uc-pill--expired { color: var(--uc-olive); background: var(--uc-grey-soft); }

.uc-plan-note {
    margin-top: 16px;
    padding: 11px 14px;
    border-radius: 9px;
    background: var(--uc-amber-soft);
    color: #6d420f;
    font-size: 13.5px;
}

.uc-plan-note b {
    white-space: nowrap;
}

.uc-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    margin: 18px 0 0;
}

.uc-plan-grid > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--uc-line-soft);
    font-size: 14px;
}

.uc-plan-grid dt {
    color: var(--uc-stone);
}

.uc-plan-grid dd {
    margin: 0;
    font-weight: 600;
    color: var(--uc-ink);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.uc-plan-grid > div.has-hint {
    flex-wrap: wrap;
    row-gap: 4px;
}

.uc-plan-grid dt {
    white-space: nowrap;
}

/* 年付说明：在月积分行下单独占一整行 */
.uc-plan-subhint {
    flex-basis: 100%;
    font-size: 12.5px;
    font-weight: 400;
    color: var(--uc-stone);
}

.uc-plan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.uc-plan-hint {
    margin: 14px 0 0;
    font-size: 12.5px;
    color: var(--uc-stone);
    line-height: 1.6;
}

.uc-support-link {
    color: var(--uc-olive);
    text-decoration: underline;
    text-underline-offset: 2px;
    /* 窄屏整体换行，不在邮箱中间断字 */
    display: inline-block;
    white-space: nowrap;
}

.uc-support-link:hover {
    color: var(--uc-terra);
}

/* ========== 订单（入口暂隐藏，保留基础样式） ========== */
.uc-orders-grid {
    display: grid;
    gap: 16px;
}

.uc-table-scroll {
    width: 100%;
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #e8e6dc;
    border-radius: 12px;
}

.uc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.uc-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--uc-olive);
    padding: 11px 18px;
    background: #fbfaf7;
    border-bottom: 1px solid var(--uc-line-soft);
    white-space: nowrap;
}

.uc-table td {
    padding: 13px 18px;
    border-top: 1px solid #f2f0ea;
}

.uc-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--uc-green);
    background: var(--uc-green-soft);
}

.uc-mobile-list {
    display: grid;
    gap: 8px;
}

.uc-m-card {
    background: #ffffff;
    border: 1px solid #e8e6dc;
    border-radius: 12px;
    padding: 14px 16px;
}

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

.uc-m-title {
    font-weight: 600;
}

.uc-m-sub,
.uc-m-time {
    font-size: 12.5px;
    color: var(--uc-stone);
}

/* ========== 移动端（M1 下划线标签） ========== */
@media (max-width: 768px) {
    /* 外层容器自带 48px 上边距，个人中心去掉，标签栏直接贴在站点导航下方 */
    #home:has(> #user-center) {
        padding-top: 0 !important;
    }

    .uc-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    /* 标签栏：通栏三等分 + 底部细线，滚动时吸附在站点导航栏下方 */
    .uc-sidebar {
        position: sticky;
        top: var(--uc-sticky-top, 62px);
        z-index: 20;
        margin: 0 -16px;
        padding: 0 8px;
        background: var(--uc-page-bg);
        border-bottom: 1px solid var(--uc-line);
    }

    .uc-side-label,
    .uc-nav-link {
        display: none;
    }

    .uc-nav {
        flex-direction: row;
        gap: 0;
    }

    .uc-nav-item {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        height: 46px;
        padding: 0 4px;
        margin-bottom: -1px;
        border-radius: 0;
        border-bottom: 2px solid transparent;
        background: transparent;
        color: var(--uc-stone);
        font-size: 14px;
        font-weight: 500;
    }

    .uc-nav-item .uc-nav-icon {
        display: none;
    }

    .uc-nav-label {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .uc-nav-label--full {
        display: none;
    }

    .uc-nav-label--short {
        display: inline;
    }

    .uc-nav-item:hover {
        background: transparent;
        color: var(--uc-ink);
    }

    .uc-nav-item.active {
        background: transparent;
        color: var(--uc-ink);
        font-weight: 600;
        border-bottom-color: var(--uc-terra);
    }

    /* 选中标签已说明所在页，去掉重复的页面大标题；作品页保留数量 + 新建按钮 */
    #tab-credits .uc-page-head,
    #tab-subscription .uc-page-head,
    #tab-orders .uc-page-head {
        display: none;
    }

    .uc-page-head {
        min-height: 34px;
        margin-bottom: 12px;
    }

    .uc-page-title > span[data-i18n] {
        display: none;
    }

    .uc-page-sub {
        margin-left: 0;
    }

    .uc-page-head .uc-action {
        height: 34px;
        padding: 0 12px;
        font-size: 13px;
    }

    #user-center .uc-sec-title {
        font-size: 14px;
        margin: 22px 0 8px;
    }

    /* 作品行 */
    .uc-work-row {
        gap: 12px;
        padding: 11px 12px;
    }

    .uc-work-thumb {
        width: 32px;
        height: 40px;
        font-size: 14px;
    }

    #user-center .uc-work-title {
        font-size: 14.5px;
    }

    .uc-work-meta {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .uc-work-open-text {
        display: none;
    }

    .uc-work-open {
        color: #b5b2a8;
    }

    /* 积分 */
    .uc-balance {
        display: grid;
        justify-content: stretch;
        gap: 12px;
        padding: 16px;
    }

    .uc-balance-label {
        font-size: 12.5px;
    }

    .uc-balance-value {
        font-size: 28px;
    }

    .uc-balance-unit {
        font-size: 13px;
    }

    .uc-balance .uc-action {
        width: 100%;
        height: 40px;
        font-size: 14px;
    }

    /* 表格转堆叠行：首列 + 末列同一行，其余列换到下一行 */
    .uc-ledger {
        font-size: 13.5px;
    }

    .uc-ledger thead {
        display: none;
    }

    .uc-ledger tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 3px 12px;
        padding: 11px 14px;
        border-top: 1px solid #f2f0ea;
    }

    .uc-ledger tbody tr:first-child {
        border-top: 0;
    }

    .uc-ledger td {
        padding: 0;
        border: 0;
    }

    .uc-ledger td.is-wide {
        grid-column: 1 / -1;
        order: 3;
    }

    .uc-ledger-date,
    .uc-never {
        font-size: 12.5px;
    }

    .uc-ledger td.uc-ledger-issued {
        grid-column: 1 / -1;
        order: 4;
    }

    .uc-ledger td.uc-ledger-issued:empty {
        display: none;
    }

    .uc-ledger-label {
        display: inline;
        font-size: 12.5px;
        color: var(--uc-stone);
    }

    .uc-meter {
        width: 100%;
        height: 3px;
        margin-top: 5px;
    }

    /* 订阅 */
    .uc-plan {
        padding: 16px;
    }

    .uc-plan-name {
        font-size: 21px;
    }

    .uc-plan-price {
        font-size: 13px;
        margin-top: 2px;
    }

    .uc-pill {
        font-size: 11.5px;
        padding: 3px 9px;
    }

    .uc-plan-grid {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 12px;
    }

    .uc-plan-grid > div {
        padding: 10px 0;
        font-size: 13.5px;
    }

    .uc-plan-note {
        font-size: 13px;
    }

    .uc-plan-actions {
        margin-top: 14px;
    }

    .uc-plan-actions .uc-action {
        flex: 1 1 100%;
        height: 40px;
        font-size: 14px;
    }

    .uc-plan-hint {
        font-size: 12px;
        margin-top: 12px;
    }

    /* 空状态 */
    .uc-empty {
        padding: 24px 16px;
    }

    .uc-empty-title {
        font-size: 18px;
    }

    .uc-empty .uc-action {
        width: 100%;
        height: 40px;
        font-size: 14px;
    }

    .uc-load-more-btn {
        height: 34px;
        font-size: 13px;
    }
}

/* 移动端：作品多选 */
@media (max-width: 768px) {
    /* 确认弹窗按钮等分整行，便于拇指点击 */
    .uc-confirm-footer .uc-action {
        flex: 1;
        height: 42px;
    }

    .uc-page-actions {
        gap: 6px;
    }

    .uc-undo-toast {
        bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .uc-tab-pane.active,
    .uc-selection-bar,
    .uc-undo-toast {
        animation: none;
    }

    .uc-work-row,
    .uc-work-check {
        transition: none;
    }
}
