/**
 * 用户功能样式 — 收藏 + 用户提交
 *
 * 沿用现有黑金设计系统 CSS 变量
 *
 * @since 2.1.0
 */

/* ============================================================
   收藏按钮
   ============================================================ */

/* 导航栏用户操作入口 */
.nav-user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
}
.nav-action-link:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}
.nav-action-icon {
    font-size: 16px;
}

/* 平板端 (769px - 1024px) */
@media (max-width: 1024px) {
    .nav-action-link {
        padding: 9px 14px;
        font-size: 13px;
    }
}

/* 手机端 (<= 768px) */
@media (max-width: 768px) {
    .nav-user-actions {
        gap: 6px;
        margin-left: auto;
        margin-right: 8px;
    }
    .nav-action-text {
        display: none;
    }
    .nav-action-link {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
    }
    .nav-action-icon {
        font-size: 18px;
    }
}

/* 小屏手机 (<= 480px) */
@media (max-width: 480px) {
    .nav-action-link {
        padding: 8px;
        min-width: 40px;
        min-height: 40px;
    }
    .nav-action-icon {
        font-size: 16px;
    }
}

.favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    line-height: 1.4;
    text-decoration: none;
}
.favorite-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-glow);
}
.favorite-btn.favorited {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
}
.favorite-btn__icon {
    font-size: 16px;
    transition: transform 0.25s ease;
}
.favorite-btn--animating .favorite-btn__icon {
    transform: scale(1.4);
}

/* 迷你版（用于卡片覆盖层） */
.favorite-btn--mini {
    padding: 2px 8px;
    font-size: 11px;
    border: none;
    background: rgba(0,0,0,0.5);
    color: rgba(255,255,255,0.7);
}
.favorite-btn--mini:hover,
.favorite-btn--mini.favorited {
    background: rgba(0,0,0,0.7);
    color: var(--accent);
    border: none;
}

/* 卡片覆盖层内的收藏按钮 */
.pose-card__overlay-fav {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 2;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.3s ease;
}
.pose-card:hover .pose-card__overlay-fav,
.pose-card__link:hover .pose-card__overlay-fav {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   收藏列表页
   ============================================================ */

.favorites-page {
    padding: 2rem 0 4rem;
}
.favorites-page__header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
}
.favorites-page__title {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.favorites-page__count {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.favorites-page__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.favorites-batch-btn {
    padding: 6px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.favorites-batch-btn:hover,
.favorites-batch-btn.active {
    border-color: var(--accent);
    color: var(--accent);
}
.favorites-batch-bar {
    display: none;
    position: sticky;
    bottom: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 20px;
    box-shadow: var(--shadow-lg);
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.favorites-batch-bar.active {
    display: flex;
}
.favorites-batch-bar__info {
    color: var(--text-secondary);
    font-size: 14px;
}
.favorites-batch-bar__remove {
    padding: 6px 18px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--error);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
}
.favorites-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}
.favorites-empty__icon {
    font-size: 48px;
    margin-bottom: 1rem;
    opacity: 0.4;
}
.favorites-empty__title {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.favorites-empty__link {
    display: inline-block;
    margin-top: 1rem;
    padding: 10px 24px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s;
}
.favorites-empty__link:hover {
    background: var(--accent);
    color: var(--bg-primary);
}
.favorites-card-check {
    display: none;
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
}
.batch-mode .favorites-card-check {
    display: block;
}

/* ============================================================
   提交表单页
   ============================================================ */

.submission-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}
.submission-page__header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.submission-page__title {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.submission-page__desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 表单区块 */
.submission-form__group {
    margin-bottom: 2rem;
}
.submission-form__label {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}
.submission-form__label .required {
    color: var(--error);
    margin-left: 2px;
}
.submission-form__input,
.submission-form__textarea,
.submission-form__select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.submission-form__input:focus,
.submission-form__textarea:focus,
.submission-form__select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.15);
}
.submission-form__textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.6;
}

/* 行内字段 */
.submission-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) {
    .submission-form__row {
        grid-template-columns: 1fr;
    }
}

/* 难度选择 */
.difficulty-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.difficulty-option {
    position: relative;
}
.difficulty-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.difficulty-option__label {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.difficulty-option input:checked + .difficulty-option__label {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
}
.difficulty-option__label:hover {
    border-color: var(--accent);
}

/* 表单提示 */
.submission-form__hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ============================================================
   图片上传区域
   ============================================================ */

.submission-upload {
    position: relative;
}
.submission-upload__preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}
.submission-upload__thumb {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
}
.submission-upload__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.submission-upload__thumb.uploading {
    display: flex;
    align-items: center;
    justify-content: center;
}
.submission-upload__progress {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}
.submission-upload__remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}
.submission-upload__thumb:hover .submission-upload__remove {
    opacity: 1;
}
.submission-upload__dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-size: 14px;
}
.submission-upload__dropzone:hover,
.submission-upload__dropzone.dragover {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.04);
    color: var(--accent);
}
.submission-upload__dropzone.has-images {
    padding: 1rem;
    font-size: 13px;
}
.submission-upload__limit {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}
.submission-upload__dropzone.hidden {
    display: none;
}

/* ============================================================
   表单按钮
   ============================================================ */

.submission-form__actions {
    display: flex;
    gap: 12px;
    margin-top: 2rem;
}

/* ========== 验证码 ========== */
.submission-captcha {
    display: flex;
    align-items: center;
    gap: 8px;
}
.submission-captcha__input {
    width: 110px !important;
    flex-shrink: 0;
}
.submission-captcha__img {
    flex-shrink: 0;
    width: 90px;
    height: 38px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.submission-captcha__refresh {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.submission-captcha__refresh:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(212, 175, 55, 0.1);
}

.submission-btn {
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}
.submission-btn--primary {
    background: var(--accent);
    color: var(--bg-primary);
}
.submission-btn--primary:hover:not(:disabled) {
    background: var(--accent-light);
    box-shadow: var(--shadow-glow);
}
.submission-btn--primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.submission-btn--secondary {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}
.submission-btn--secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

#draft-status {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 6px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 12px;
    z-index: 100;
}

/* ============================================================
   用户菜单（右上角头像下拉）
   ============================================================ */

.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.user-menu-btn.is-open {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
}

.user-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
    background: var(--bg-secondary);
}

.user-display-name {
    font-size: 14px;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 下拉菜单 */
.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 1000;
    animation: dropdownFadeIn 0.15s ease;
}

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

.user-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.user-menu-dropdown a:hover {
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
    padding-left: 20px;
}

.user-menu-dropdown hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 4px 0;
}


/* 移动端：用户菜单响应式 */
@media (max-width: 600px) {
    .user-menu-btn {
        padding: 6px 10px;
    }
    .user-avatar-img {
        width: 28px;
        height: 28px;
    }
    .user-display-name {
        display: none;
    }
    .user-menu-dropdown {
        min-width: 160px;
        right: -8px;
    }
}

/* 小屏手机 (<= 480px) */
@media (max-width: 480px) {
    .user-menu-btn {
        padding: 6px;
        min-width: 40px;
        min-height: 40px;
    }
}


/* ============================================================
   消息提示
   ============================================================ */

.submission-message {
    display: none;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 14px;
}
.submission-message.error {
    display: block;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: var(--error);
}
.submission-message.success {
    display: block;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: var(--success);
}
#pose-submit-limit-hint {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 8px;
}

/* ============================================================
   预览模态
   ============================================================ */

.preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.preview-modal {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}
.preview-modal__close {
    position: sticky;
    top: 12px;
    right: 12px;
    float: right;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.preview-modal__close:hover {
    background: rgba(255,255,255,0.2);
}
.preview-modal__body {
    padding: 2rem;
}
.preview-content {
    color: var(--text-primary);
}

/* ============================================================
   我的提交列表页
   ============================================================ */

.my-submissions {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}
.my-submissions__header {
    text-align: center;
    margin-bottom: 2rem;
}
.my-submissions__title {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.my-submissions__filters {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.my-submissions__filter {
    padding: 6px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.my-submissions__filter:hover,
.my-submissions__filter.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.06);
}
.submission-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    background: var(--bg-card);
    transition: border-color 0.2s;
}
.submission-item:hover {
    border-color: var(--border-color);
}
.submission-item__thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-secondary);
}
.submission-item__info {
    flex: 1;
    min-width: 0;
}
.submission-item__title {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.submission-item__meta {
    color: var(--text-muted);
    font-size: 12px;
}
.submission-item__status {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}
.submission-item__status--pending {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}
.submission-item__status--approved {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}
.submission-item__status--rejected {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
}
.submission-item__reason {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
    font-style: italic;
}
.my-submissions__empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}
.my-submissions__pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}
.my-submissions__page-btn {
    padding: 6px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
}
.my-submissions__page-btn:hover,
.my-submissions__page-btn.active {
    border-color: var(--accent);
    color: var(--accent);
}
.my-submissions__page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================================
   个人中心页 (profile-page)
   ============================================================ */

.profile-page {
    padding: 2.5rem 0 4rem;
}
.profile-page__header {
    text-align: center;
    margin-bottom: 2rem;
}
.profile-page__title {
    color: var(--text-primary);
    font-size: 2rem;
    margin: 0 0 0.5rem;
}
.profile-page__subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.profile-notice {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
}
.profile-notice--success {
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
}
.profile-notice--error {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
}

/* 用户信息卡片 */
.profile-card {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.profile-card__avatar {
    flex-shrink: 0;
}
.profile-card__avatar-img {
    border-radius: 50%;
    border: 3px solid var(--accent);
    display: block;
    background: var(--bg-secondary);
}
.profile-card__info {
    flex: 1;
    min-width: 260px;
}
.profile-card__name {
    margin: 0 0 0.25rem;
    color: var(--text-primary);
    font-size: 1.4rem;
}
.profile-card__meta {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0 0 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.profile-card__dot {
    opacity: 0.6;
}
.profile-card__bio {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0.25rem 0 1rem;
}
.profile-card__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.profile-card__link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.profile-card__link:hover {
    background: var(--accent);
    color: var(--bg-primary);
}
.profile-card__link--alt {
    color: var(--text-secondary);
    border-color: var(--border-light);
}
.profile-card__link--alt:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

/* 快捷入口 */
.profile-shortcuts {
    max-width: 800px;
    margin: 0 auto 2rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
.profile-shortcut {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}
.profile-shortcut:hover {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.04);
    transform: translateY(-1px);
}
.profile-shortcut__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
    border-radius: 50%;
    flex-shrink: 0;
}
.profile-shortcut__body {
    flex: 1;
    min-width: 0;
}
.profile-shortcut__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
}
.profile-shortcut__desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}
.profile-shortcut__arrow {
    color: var(--text-muted);
    font-size: 20px;
    flex-shrink: 0;
}
.profile-shortcut:hover .profile-shortcut__arrow {
    color: var(--accent);
}

/* 表单区域 */
.profile-form-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}
.profile-form-wrap__header {
    margin-bottom: 1.5rem;
}
.profile-form-wrap__title {
    margin: 0 0 0.25rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}
.profile-form-wrap__hint {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.profile-form__row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.profile-form__label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}
.profile-form input[type="text"],
.profile-form input[type="url"],
.profile-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.profile-form input[type="text"]:focus,
.profile-form input[type="url"]:focus,
.profile-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.profile-form textarea {
    resize: vertical;
    line-height: 1.6;
    min-height: 100px;
}
.profile-form__footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 0.5rem;
}
.profile-form__submit {
    padding: 10px 24px;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.profile-form__submit:hover {
    background: var(--accent-light);
    box-shadow: var(--shadow-glow);
}

/* 未登录提示 */
.profile-guest {
    max-width: 500px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}
.profile-guest__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
}
.profile-guest__title {
    margin: 0 0 0.5rem;
    color: var(--text-primary);
    font-size: 1.4rem;
}
.profile-guest__desc {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    font-size: 14px;
}
.profile-guest__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.profile-guest__btn {
    padding: 10px 24px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.profile-guest__btn:hover {
    background: var(--accent-light);
    box-shadow: var(--shadow-glow);
}
.profile-guest__btn--alt {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}
.profile-guest__btn--alt:hover {
    background: var(--border-light);
    box-shadow: none;
}

@media (max-width: 640px) {
    .profile-card {
        padding: 1.5rem;
    }
    .profile-form-wrap {
        padding: 1.5rem;
    }
    .profile-page__title {
        font-size: 1.5rem;
    }
}

/* ============================================================
   收藏分组 / 合集（与小程序共用 _pose_collections）
   ============================================================ */

.collections-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}
.collections-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.collections-section__title {
    color: var(--text-primary, #fff);
    font-size: 1.4rem;
    margin: 0;
}
.collections-section__new {
    padding: 8px 18px;
    border: 1px solid var(--accent, #0a84ff);
    border-radius: var(--radius-sm, 10px);
    background: transparent;
    color: var(--accent, #0a84ff);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}
.collections-section__new:hover {
    background: var(--accent, #0a84ff);
    color: var(--bg-primary, #0b0b0f);
}
.collections-section__empty {
    color: var(--text-muted, #8a8a8e);
    font-size: 0.95rem;
    padding: 1rem 0;
}

/* 单个合集区块 */
.pose-collection {
    margin-bottom: 2rem;
}
.pose-collection__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.pose-collection__title {
    color: var(--text-secondary, #d1d1d6);
    font-size: 1.1rem;
    margin: 0;
}
.pose-collection__count {
    color: var(--text-muted, #8a8a8e);
    font-size: 0.85rem;
}
.pose-collection__del {
    margin-left: auto;
    padding: 4px 12px;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    border-radius: var(--radius-sm, 10px);
    background: transparent;
    color: var(--text-muted, #8a8a8e);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.pose-collection__del:hover {
    border-color: #ff453a;
    color: #ff453a;
}
.pose-collection__empty {
    color: var(--text-muted, #8a8a8e);
    font-size: 0.9rem;
    padding: 0.5rem 0 1rem;
}

/* 收藏卡片上的「加入合集」按钮 */
.pose-card {
    position: relative;
}
.pose-card__add-col {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    padding: 4px 10px;
    border: 1px solid var(--accent, #0a84ff);
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.12);
    color: var(--accent, #0a84ff);
    font-size: 0.75rem;
    line-height: 1.4;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all 0.2s;
}
.pose-card__add-col:hover {
    background: var(--accent, #0a84ff);
    color: #fff;
}

/* 加入合集弹窗 */
.col-modal-mask {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}
.col-modal {
    width: min(420px, 90vw);
    max-height: 80vh;
    overflow: auto;
    background: var(--bg-card, #1c1c1e);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-lg, 18px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 1.25rem;
}
.col-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    color: var(--text-primary, #fff);
    margin-bottom: 1rem;
}
.col-modal__close {
    border: none;
    background: transparent;
    color: var(--text-muted, #8a8a8e);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.col-modal__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.col-modal__loading {
    color: var(--text-muted, #8a8a8e);
    font-size: 0.9rem;
    text-align: center;
    padding: 0.5rem 0;
}
.col-modal__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-sm, 10px);
    background: transparent;
    color: var(--text-secondary, #d1d1d6);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}
.col-modal__item:hover {
    border-color: var(--accent, #0a84ff);
    color: var(--accent, #0a84ff);
}
.col-modal__count {
    color: var(--text-muted, #8a8a8e);
    font-size: 0.8rem;
}
.col-modal__new {
    display: flex;
    gap: 0.5rem;
}
.col-modal__new input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    border-radius: var(--radius-sm, 10px);
    background: var(--bg-input, rgba(255, 255, 255, 0.05));
    color: var(--text-primary, #fff);
    font-size: 0.9rem;
}
.col-modal__new input:focus {
    outline: none;
    border-color: var(--accent, #0a84ff);
}
.col-modal__new button {
    padding: 9px 16px;
    border: none;
    border-radius: var(--radius-sm, 10px);
    background: var(--accent, #0a84ff);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}

/* ============================================================
   随机姿势页
   ============================================================ */

.random-page {
    padding: 2.5rem 0 4rem;
}
.random-page__header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}
.random-page__title {
    color: var(--text-primary, #fff);
    font-size: 2rem;
    margin: 0 0 0.5rem;
}
.random-page__subtitle {
    color: var(--text-muted, #8a8a8e);
    font-size: 0.95rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}
.random-page__shuffle {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 10px 26px;
    border-radius: 999px;
    background: var(--accent, #0a84ff);
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.2s, opacity 0.2s;
}
.random-page__shuffle:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.random-page__empty {
    text-align: center;
    color: var(--text-muted, #8a8a8e);
    padding: 3rem 1rem;
}
.random-page__layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 860px) {
    .random-page__layout {
        grid-template-columns: 1fr;
    }
}
.random-feature {
    background: var(--bg-card, #1c1c1e);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-lg, 18px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.random-feature__media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}
.random-feature__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.random-feature__media:hover img {
    transform: scale(1.04);
}
.random-feature__media-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}
.random-feature__body {
    padding: 1.5rem;
}
.random-feature__cat {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--accent, #0a84ff);
    text-decoration: none;
    margin-bottom: 0.5rem;
}
.random-feature__title {
    font-size: 1.5rem;
    color: var(--text-primary, #fff);
    margin: 0 0 0.75rem;
    line-height: 1.35;
}
.random-feature__title a {
    color: inherit;
    text-decoration: none;
}
.random-feature__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted, #8a8a8e);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.random-feature__diff {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
}
.random-feature__excerpt {
    color: var(--text-secondary, #d1d1d6);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 1.5rem;
}
.random-feature__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.random-feature__btn {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 11px 18px;
    border-radius: var(--radius-sm, 10px);
    text-decoration: none;
    font-size: 0.95rem;
    border: 1px solid var(--accent, #0a84ff);
    color: var(--accent, #0a84ff);
    transition: all 0.2s;
}
.random-feature__btn--primary {
    background: var(--accent, #0a84ff);
    color: #fff;
}
.random-feature__btn:hover {
    opacity: 0.92;
}
.random-sidebar__title {
    color: var(--text-secondary, #d1d1d6);
    font-size: 1.15rem;
    margin: 0 0 1.25rem;
}
.random-sidebar__empty {
    color: var(--text-muted, #8a8a8e);
    font-size: 0.9rem;
}
.random-sidebar__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
