/* ═══════════════════════════════════════════════════════
   个人中心 - 自定义样式
   ═══════════════════════════════════════════════════════ */

/* 覆盖 Astra 页面构建器模板内边距 */
.woocommerce.ast-page-builder-template .site-main,
.ast-single-post.ast-page-builder-template .site-main > article,
.ast-page-builder-template .site-main {
    padding: 0 !important;
}

/* 覆盖 Astra entry-content 标题默认 margin */
.entry-content .uc-wrap h1,
.entry-content .uc-wrap h2,
.entry-content .uc-wrap h3,
.entry-content .uc-wrap h4 {
    margin-bottom: 0 !important;
}
.entry-content .uc-wrap .uc-title {
    margin-bottom: 20px !important;
}

/* 移除 WooCommerce 默认样式 */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
    display: none !important;
}

/* ── 整体容器 ── */
.uc-wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ── 顶部横幅 ── */
.uc-banner {
    height: 160px;
    background-color: #f2f3f8;
    background-image:
        linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,.45)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='200'%3E%3Crect fill='%23f2f3f8' width='800' height='200'/%3E%3Ccircle cx='600' cy='80' r='120' fill='%23eaebf2' opacity='.5'/%3E%3Ccircle cx='680' cy='140' r='80' fill='%23e8e9f0' opacity='.4'/%3E%3Ccircle cx='400' cy='60' r='100' fill='%23ecedF4' opacity='.35'/%3E%3Ccircle cx='150' cy='120' r='140' fill='%23e9eaf1' opacity='.3'/%3E%3Ccircle cx='300' cy='160' r='60' fill='%23ebedf3' opacity='.4'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
}

/* ── 主体布局 ── */
.uc-body {
    display: flex;
    gap: 28px;
    max-width: 1600px;
    margin: -70px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ── 左侧边栏 ── */
.uc-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.uc-user-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.uc-avatar {
    width: 72px;
    height: 72px;
    margin: -52px auto 8px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    background: #eee;
}

.uc-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.uc-username {
    font-size: 16px;
    font-weight: 300 !important;
    margin: 0 0 2px !important;
    color: #1a1a2e;
}

.uc-uid {
    font-size: 13px;
    color: #999;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.uc-role {
    display: none;
}

.uc-vip-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 15px;
    background: #f5f5f7;
    border-radius: 8px;
    margin-top: 6px;
    width: 100%;
    box-sizing: border-box;
}

.uc-vip-icon {
    display: inline-flex;
    flex-shrink: 0;
}

.uc-vip-label {
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

.uc-vip-expire {
    margin-left: auto;
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}

.uc-vip-btn {
    margin-left: auto;
    display: inline-block;
    padding: 3px 12px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff !important;
    font-size: 10px;
    font-weight: 500;
    border-radius: 14px;
    text-decoration: none;
    transition: opacity .2s;
}

.uc-vip-btn:hover {
    opacity: .85;
}

.uc-uid-copy {
    cursor: pointer;
    opacity: .5;
    transition: opacity .2s;
}

.uc-uid-copy:hover {
    opacity: 1;
}

/* ── 导航菜单 ── */
.uc-nav {
    background: #fff;
    border-radius: 12px;
    padding: 8px 0;
    margin-top: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.uc-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    transition: all .2s;
    cursor: pointer;
}

.uc-nav-item:hover {
    color: #6366f1;
    background: #f8f7ff;
}

.uc-nav-item.is-active {
    color: #6366f1;
    background: #f8f7ff;
    font-weight: 400;
}

.uc-nav-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.uc-nav-logout {
    margin-top: 4px;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.uc-nav-logout:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* ── 右侧内容区 ── */
.uc-content {
    flex: 1;
    min-width: 0;
    padding-top: 90px;
}

.uc-section {
    margin-bottom: 24px;
}

.uc-title {
    font-size: 20px !important;
    font-weight: 400 !important;
    margin: 0 0 20px !important;
    line-height: 1.4 !important;
    color: #333;
}

.uc-card {
    background: #fff;
    border-radius: 0 !important;
    padding: 24px;
    box-shadow: none !important;
}

.uc-empty {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 40px 0;
    margin: 0;
}

.uc-empty a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

.uc-empty a:hover {
    text-decoration: underline;
}

/* ── 会员信息 ── */
.uc-membership-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.uc-membership-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f8f7ff;
    border-radius: 8px;
    border-left: 3px solid #6366f1;
}

.uc-membership-name {
    font-weight: 600;
    color: #6366f1;
}

.uc-membership-expire {
    font-size: 13px;
    color: #888;
}

/* ── 表格 ── */
.uc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.uc-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #f0f0f0;
    color: #888;
    font-weight: 600;
    font-size: 13px;
}

.uc-table td {
    padding: 12px;
    border-bottom: 1px solid #f5f5f5;
    color: #555;
}

.uc-table tr:last-child td {
    border-bottom: none;
}

.uc-btn-sm {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 6px;
    background: #6366f1;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s;
}

.uc-btn-sm:hover {
    opacity: .85;
}

/* ── 个人信息表单 ── */
.uc-profile-form {
    max-width: 480px;
}

.uc-form-row {
    margin-bottom: 18px;
}

.uc-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.uc-form-row input[type="text"],
.uc-form-row input[type="email"],
.uc-form-row input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    box-sizing: border-box;
}

.uc-form-row input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .1);
    background: #fff;
}

.uc-avatar-upload {
    display: inline-block;
}

.uc-avatar-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}

.uc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 32px;
    border: none;
    border-radius: 8px;
    background: #6366f1;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
}

.uc-btn:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.uc-btn:active {
    transform: translateY(0);
}

/* ── 会员计划卡片网格 ── */
.uc-plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.uc-plan-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, border-color .2s;
}

.uc-plan-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    border-color: #f7931e;
}

.uc-plan-card.is-current {
    border-color: #f7931e;
}

.uc-plan-current-tag {
    position: absolute;
    top: -1px;
    right: 16px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 0 0 6px 6px;
}

.uc-plan-name {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 400;
    color: #111;
}

.uc-plan-price-row {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin: 8px 0 4px;
}

.uc-plan-currency {
    font-size: 18px;
    font-weight: 500;
    color: #111;
}

.uc-plan-amount {
    font-size: 36px;
    font-weight: 500;
    color: #111;
    line-height: 1;
}

.uc-plan-period {
    font-size: 13px;
    color: #999;
    margin-left: 2px;
}

.uc-plan-expire {
    font-size: 12px;
    color: #f7931e;
    margin-bottom: 4px;
}

.uc-plan-action {
    margin: 12px 0 0;
}

.uc-plan-btn {
    display: block;
    text-align: center;
    padding: 8px 0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    transition: all .2s;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff !important;
    border: none;
    cursor: pointer;
}

.uc-plan-btn:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.uc-plan-btn.is-active {
    background: #f5f5f7;
    color: #999 !important;
    cursor: default;
    pointer-events: none;
}

.uc-plan-btn.is-free {
    background: #fff;
    color: #333 !important;
    border: 1px solid #d1d5db;
}

.uc-plan-btn.is-free:hover {
    background: #f9fafb;
}

.uc-plan-btn.is-outline {
    background: transparent;
    color: #555 !important;
    border: 1.5px solid #d1d5db;
    cursor: default;
}

.uc-plan-btn.is-outline:hover {
    background: #f9fafb;
    border-color: #bbb;
    transform: none;
}

.uc-plan-btn.is-owned {
    background: #f5f5f7;
    color: #999 !important;
    cursor: default;
    pointer-events: none;
}

/* 扫光特效 */
.uc-plan-btn.btn-sweep {
    position: relative;
    overflow: hidden;
}

.uc-plan-btn.btn-sweep::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 100%
    );
    animation: btnSweep 2.5s ease-in-out infinite;
}

@keyframes btnSweep {
    0%   { left: -100%; }
    50%  { left: 120%; }
    100% { left: 120%; }
}

.uc-plan-desc {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #555;
    line-height: 1.8;
}

.uc-plan-desc p {
    margin: 0 0 6px;
}

.uc-plan-desc ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.uc-plan-desc li {
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.uc-plan-desc li {
    font-size: 11px;
}

.uc-plan-desc li .uc-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f7931e;
    flex-shrink: 0;
    font-style: normal;
}

.uc-plan-desc li .uc-check::before {
    content: '';
    display: block;
    width: 3.5px;
    height: 6px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
    margin-top: -1px;
}

/* ═══════════════════════════════════════════════════
   会员支付弹窗
   ═══════════════════════════════════════════════════ */
.uc-pay-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uc-pay-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.uc-pay-dialog {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 720px;
    max-width: 92vw;
    padding: 32px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-height: 90vh;
    overflow-y: auto;
}

.uc-pay-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    z-index: 1;
}

.uc-pay-close:hover {
    color: #333;
}

.uc-pay-title {
    font-size: 30px !important;
    font-weight: 400 !important;
    color: #222 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #222 !important;
    margin: 0 0 20px !important;
    padding-bottom: 20px !important;
}

.uc-pay-info {
    display: flex;
    background: #f7f7f8;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 28px;
    align-items: center;
}

.uc-pay-info-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.uc-pay-info-item:first-child {
    flex: 2.5;
    align-items: flex-start;
}

.uc-pay-info-label {
    font-size: 12px;
    color: #999;
}

.uc-pay-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.uc-pay-body {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 20px;
}

.uc-pay-qr-side {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.uc-pay-qrcode {
    width: 196px;
    height: 196px;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.uc-pay-qrcode.is-loading {
    position: relative;
    background: #f8f8f8;
}

.uc-pay-qrcode.is-loading::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: ucSkeleton 1.5s ease-in-out infinite;
}

@keyframes ucSkeleton {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.uc-pay-qrcode img,
.uc-pay-qrcode canvas {
    display: block;
}

.uc-pay-amount-side {
    padding-top: 12px;
}

.uc-pay-amount-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
}

.uc-pay-amount-value {
    font-family: MiSans-Heavy, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: linear-gradient(90.31deg, rgb(251, 0, 255) -0.85%, rgb(255, 121, 0) 101.44%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 12px;
}

.uc-pay-amount-currency {
    font-size: 22px;
    margin-right: 2px;
}

.uc-pay-status {
    font-size: 11px;
    color: #f7931e;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.uc-pay-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #f7931e;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ucSpin 0.8s linear infinite;
}

@keyframes ucSpin {
    to { transform: rotate(360deg); }
}

.uc-pay-agreement {
    font-size: 11px;
    color: #999;
    text-align: center;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 8px;
}

.uc-pay-methods-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #999;
    margin-top: 8px;
}

.uc-pay-methods-bar img {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.uc-pay-method-icons {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
}

.uc-pay-method-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.uc-pay-method-icon-btn .uc-pay-method-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: all 0.15s;
}

.uc-pay-method-icon-btn .uc-pay-method-icon-label {
    font-size: 11px;
    color: #999;
}

.uc-pay-method-icon-btn.is-active .uc-pay-method-icon-wrap {
    border-color: #f7931e;
    background: #fff7f2;
}

.uc-pay-method-icon-btn.is-active .uc-pay-method-icon-label {
    color: #f7931e;
}

.uc-pay-method-icon-btn:hover .uc-pay-method-icon-wrap {
    border-color: #f7931e;
}

.uc-pay-method-icon-btn img {
    width: 26px;
    height: 26px;
}

.uc-pay-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 196px;
    height: 196px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fffaf6;
}

.uc-pay-success svg {
    flex-shrink: 0;
}

.uc-pay-success-text {
    font-size: 14px;
    font-weight: 600;
    color: #f46c18;
}

/* ═══════════════════════════════════════════════════
   我的收藏
   ═══════════════════════════════════════════════════ */

/* ── 分类 Tab ── */
.uc-fav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.uc-fav-tab {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    background: #f5f5f7;
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}

.uc-fav-tab:hover {
    background: #eee;
    color: #333;
}

.uc-fav-tab.is-active {
    background: #f7931e;
    color: #fff;
}

.uc-fav-tab em {
    font-style: normal;
    font-size: 11px;
    opacity: .75;
    margin-left: 2px;
}

/* ── 产品网格 ── */
.uc-fav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* 音乐卡片跨满整行 */
.uc-fav-card[data-style="music"] {
    grid-column: 1 / -1;
}

/* ── 产品卡片（复用 pdw-* 样式的外壳） ── */
.uc-fav-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

/* ── 取消收藏按钮 ── */
.uc-fav-remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .4);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s, background .15s;
    z-index: 10;
    padding: 0;
}

.uc-fav-card:hover .uc-fav-remove-btn {
    opacity: 1;
}

.uc-fav-remove-btn svg {
    color: #fff;
}

.uc-fav-remove-btn:hover {
    background: rgba(220, 50, 50, .8);
}

/* 音乐类型取消按钮位置微调 */
.uc-fav-card[data-style="music"] .uc-fav-remove-btn {
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    background: rgba(0, 0, 0, .15);
}

.uc-fav-card[data-style="music"] .uc-fav-remove-btn:hover {
    background: rgba(220, 50, 50, .7);
}

/* ═══════════════════════════════════════════════════
   投稿赚钱 - 商户门槛引导
   ═══════════════════════════════════════════════════ */

.uc-contribute-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 56px 32px;
    background: #fff;
    border: 1px dashed #e0dff5;
    border-radius: 8px;
}

.uc-contribute-gate-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f8f7ff;
    color: #6366f1;
    margin-bottom: 20px;
}

.uc-contribute-gate-title {
    font-size: 18px;
    font-weight: 400;
    color: #333;
    margin: 0 0 10px;
}

.uc-contribute-gate-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.7;
    max-width: 400px;
    margin: 0 0 24px;
}

.uc-contribute-gate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: #6366f1;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity .2s, transform .1s;
}

.uc-contribute-gate-btn:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.uc-contribute-gate-btn:active {
    transform: translateY(0);
}

.uc-contribute-gate-btn-secondary {
    background: #f5f5f7;
    color: #555 !important;
}

.uc-contribute-gate-btn-secondary:hover {
    background: #eee;
    opacity: 1;
    transform: none;
}

/* ═══════════════════════════════════════════════════
   响应式：平板 (≤1024px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .uc-body {
        gap: 20px;
    }

    .uc-sidebar {
        width: 200px;
    }

    .uc-plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .uc-fav-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ═══════════════════════════════════════════════════
   响应式：手机 (≤768px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .uc-banner {
        height: 120px;
    }

    .uc-body {
        flex-direction: column;
        margin-top: -50px;
    }

    .uc-sidebar {
        width: 100%;
    }

    .uc-user-card {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 16px 20px;
        text-align: left;
    }

    .uc-avatar {
        width: 56px;
        height: 56px;
        margin: 0;
        flex-shrink: 0;
    }

    .uc-username {
        font-size: 15px;
        margin: 0;
    }

    .uc-uid {
        font-size: 11px;
    }

    .uc-nav {
        display: flex;
        flex-wrap: wrap;
        padding: 6px;
        gap: 2px;
    }

    .uc-nav-item {
        flex: 0 0 auto;
        padding: 8px 14px;
        border-left: none;
        border-radius: 8px;
        font-size: 13px;
        gap: 6px;
    }

    .uc-nav-item.is-active {
        border-left-color: transparent;
        background: #6366f1;
        color: #fff;
    }

    .uc-nav-item.is-active .uc-nav-icon svg {
        stroke: #fff;
    }

    .uc-nav-logout {
        border-top: none;
        margin-top: 0;
        padding-top: 8px;
    }

    .uc-content {
        padding-top: 0;
    }

    .uc-card {
        padding: 16px;
    }

    .uc-plans-grid {
        grid-template-columns: 1fr;
    }

    .uc-fav-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .uc-profile-form {
        max-width: 100%;
    }

    .uc-purchased-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .uc-purchased-actions {
        margin-top: 8px;
    }
}

/* ── 头像悬停上传 ── */
.uc-avatar {
    position: relative;
    cursor: pointer;
}
.uc-avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
}
.uc-avatar:hover .uc-avatar-overlay {
    opacity: 1;
}

/* ── 已购买列表 ── */
.uc-purchased-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.uc-purchased-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    transition: box-shadow .2s;
}
.uc-purchased-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.uc-purchased-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
}
.uc-purchased-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.uc-purchased-info {
    flex: 1;
    min-width: 0;
}
.uc-purchased-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.uc-purchased-name:hover {
    color: #6366f1;
}
.uc-purchased-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
}
.uc-purchased-actions {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.uc-purchased-actions .uc-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}
.uc-purchased-no-file {
    font-size: 12px;
    color: #ccc;
}
