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

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

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

/* 主题切换按钮 — 与 nav-action-link 保持一致的视觉风格 */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
    line-height: 1;
    outline: none;
}
.theme-toggle:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}
.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    display: block;
}
/* 默认（深色模式）：显示月亮 */
.theme-toggle .icon-sun {
    display: none;
}
.theme-toggle .icon-moon {
    display: block;
}
/* 浅色模式：显示太阳 */
html[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
}
html[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}
.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;
    }
    .theme-toggle {
        padding: 9px;
        min-width: 40px;
        min-height: 40px;
    }
}

/* 手机端 (<= 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;
    }
    .theme-toggle {
        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;
    }
    .theme-toggle {
        padding: 8px;
        min-width: 40px;
        min-height: 40px;
    }
    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }
    .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: 800px;
    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: 1.5rem;
}
.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__question {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    user-select: none;
}
.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;
}

/* 多巴胺配色下的用户菜单增强 */
html[data-theme-color="dopamine"] .user-menu-btn:hover {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%);
    color: var(--text-on-accent);
    border-color: transparent;
}

html[data-theme-color="dopamine"] .user-menu-btn.is-open {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%);
    color: var(--text-on-accent);
    border-color: transparent;
}

html[data-theme-color="dopamine"] .user-menu-dropdown {
    border: 1px solid transparent;
    background:
        linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
        linear-gradient(135deg, var(--accent), var(--accent-purple), var(--accent-blue)) border-box;
}

html[data-theme-color="dopamine"] .user-menu-dropdown a:hover {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%);
    color: var(--text-on-accent);
}

/* 移动端：用户菜单响应式 */
@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;
    }
}
