/* Fanfic App Styles */
.fanfic-app {
    background-color: #f5f5f7;
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ff-header {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 10;
}

.ff-title {
    font-size: 16px;
    font-weight: bold;
}

/* Top Sub-Tabs for Board */
.ff-sub-tabs {
    display: flex;
    background: #fff;
    padding: 5px 10px;
    border-bottom: 1px solid #eee;
    justify-content: center;
    gap: 20px;
}

.ff-sub-tab {
    padding: 8px 15px;
    font-size: 14px;
    color: #999;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s;
}

.ff-sub-tab.active {
    color: #fff;
    background: #333;
    font-weight: bold;
}

.ff-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    padding-bottom: 100px; /* Space for bottom nav */
}

.ff-page {
    display: none;
    height: 100%;
    flex-direction: column;
}

.ff-page.active {
    display: flex;
}

/* Post Card */
.ff-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.1s;
}

.ff-card:active {
    transform: scale(0.98);
}

.ff-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.ff-card-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-size: cover;
    margin-right: 10px;
    background-color: #eee;
}

.ff-card-author {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.ff-card-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.ff-card-preview {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    
    -webkit-line-clamp: 3;
line-clamp: 3;

    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ff-card-meta {
    margin-top: 10px;
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: space-between;
}

/* Bottom Nav */
.ff-nav {
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.03);
    z-index: 100;
}

.ff-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.ff-nav-item.active {
    color: #333;
    font-weight: bold;
}

.ff-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

/* Header Icons */
.ff-header-icon {
    position: absolute;
    right: 15px;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    padding: 5px;
}

.ff-header-icon.left {
    left: 15px;
    right: auto;
}

/* Generator Modal */
.ff-modal-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ff-input-group {
    margin-bottom: 15px;
}

.ff-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

.ff-input-group input, .ff-input-group textarea, .ff-input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    background: #fff;
}

.ff-input-group textarea {
    height: 100px;
    resize: none;
}

/* Reader Modal */
.ff-reader {
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ff-reader-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
}

.ff-reader-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.ff-reader-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    background: #fff;
}

.ff-comment-section {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.ff-comment-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f9f9f9;
}

.ff-comment-user {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.ff-comment-text {
    font-size: 14px;
    color: #666;
}

/* Me Page */
.ff-me-header {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 15px;
}

.ff-me-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #eee;
    background-size: cover;
    margin: 0 auto 15px;
}

.ff-me-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.ff-me-bio {
    font-size: 14px;
    color: #999;
}

.ff-me-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.ff-stat-item {
    text-align: center;
}

.ff-stat-num {
    font-weight: bold;
    font-size: 18px;
}

.ff-stat-label {
    font-size: 12px;
    color: #999;
}
/* ===== 全屏布局修复 ===== */
#fanficApp {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    flex-direction: column;
    background: #f5f5f7;
}

.fanfic-app {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* 底部导航栏 */
.ff-nav {
    display: flex !important;
    flex-shrink: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid #eee;
    z-index: 999;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

/* 页面容器 */
.ff-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    padding-bottom: 20px;
}

/* 页面显示控制 */
.ff-page {
    display: none !important;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.ff-page.active {
    display: flex !important;
}
/* ===== 同人墙美化 - 简约可爱黑白风 ===== */

/* 卡片样式 */
.ff-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #f5f5f5;
    transition: all 0.2s ease;
}

.ff-card:active {
    transform: scale(0.985);
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

/* 标签样式 */
.ff-tag {
    display: inline-block;
    background: #fafafa;
    color: #666;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    margin-right: 6px;
    margin-bottom: 6px;
    border: 1px solid #f0f0f0;
}

.ff-card-tags {
    margin-bottom: 10px;
}

/* 作者头像 */
.ff-card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 标题样式 */
.ff-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* 预览文字 */
.ff-card-preview {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 底部信息 */
.ff-card-meta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f8f8f8;
    font-size: 11px;
    color: #bbb;
    display: flex;
    gap: 12px;
}

.ff-card-meta i {
    margin-right: 3px;
}

/* 板块导航 */
.ff-board-item {
    padding: 8px 16px;
    background: #f8f8f8;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.ff-board-item.active {
    background: #1a1a1a;
    color: #fff;
}

.ff-board-item:not(.active):hover {
    background: #f0f0f0;
}

.ff-board-item.add-board {
    background: transparent;
    border: 1px dashed #ddd;
    color: #999;
}

/* 子标签页 */
.ff-sub-tab {
    padding: 8px 20px;
    font-size: 13px;
    color: #999;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s;
}

.ff-sub-tab.active {
    color: #fff;
    background: #1a1a1a;
    font-weight: 500;
}

/* 空状态 */
.ff-empty {
    text-align: center;
    padding: 60px 20px;
    color: #ccc;
}

.ff-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.ff-empty p {
    margin: 0;
    font-size: 14px;
}

/* 板块占位符特殊样式 */
.ff-board-placeholder {
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
    border-radius: 16px;
    margin: 20px 0;
}

/* 底部导航 */
.ff-nav {
    background: #fff;
    border-top: 1px solid #f5f5f5;
    padding: 8px 0 12px;
}

.ff-nav-item {
    color: #bbb;
    font-size: 11px;
}

.ff-nav-item.active {
    color: #1a1a1a;
}

.ff-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

/* 阅读器内作者碎碎念 */
.ff-author-note {
    background: #fafafa;
    border-radius: 12px;
    padding: 16px;
    margin-top: 24px;
    border-left: 3px solid #e0e0e0;
}

.ff-author-note-title {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.ff-author-note-content {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    font-style: italic;
}

/* 热搜列表 */
.ff-trending-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    margin-bottom: 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.ff-trending-item:active {
    background: #fafafa;
}

.ff-trending-rank {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #f0f0f0;
    color: #999;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.ff-trending-rank.top1 {
    background: #1a1a1a;
    color: #fff;
}

.ff-trending-rank.top2 {
    background: #444;
    color: #fff;
}

.ff-trending-rank.top3 {
    background: #888;
    color: #fff;
}

/* 礼物选择 */
.ff-gift-item {
    text-align: center;
    padding: 12px;
    background: #fafafa;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.ff-gift-item:hover {
    background: #f5f5f5;
}

.ff-gift-item.selected {
    border-color: #1a1a1a;
    background: #fff;
}

.ff-gift-item.bad {
    background: #fff5f5;
}

.ff-gift-item.bad.selected {
    border-color: #ff6b6b;
}

.ff-gift-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.ff-gift-name {
    font-size: 12px;
    color: #666;
}

.ff-gift-price {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.ff-gift-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 10px;
}

/* 我的页面 */
.ff-me-header {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #f5f5f5;
}

.ff-me-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    margin: 0 auto 12px;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.ff-me-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.ff-me-bio {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

.ff-me-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 20px;
}

.ff-stat-item {
    text-align: center;
}

.ff-stat-num {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.ff-stat-label {
    font-size: 11px;
    color: #bbb;
    margin-top: 2px;
}

/* 我的菜单 */
.ff-me-menu {
    background: #fff;
    margin-top: 12px;
    padding: 8px 0;
}

.ff-me-menu-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.ff-me-menu-item:active {
    background: #fafafa;
}

.ff-me-menu-item i {
    width: 24px;
    color: #888;
    margin-right: 12px;
}

.ff-me-menu-item span {
    font-size: 14px;
    color: #333;
}

/* 阅读器头部 */
.ff-reader-header {
    display: flex;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f5f5f5;
}

.ff-reader-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0f0f0;
    margin-right: 12px;
    cursor: pointer;
}

.ff-reader-author-info {
    flex: 1;
}

.ff-reader-author-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.ff-reader-time {
    font-size: 12px;
    color: #bbb;
    margin-top: 2px;
}

.ff-reader-actions {
    display: flex;
    gap: 8px;
}

.ff-reader-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.4;
}

.ff-reader-text {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
}

/* 评论区 */
.ff-comment-section {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #f5f5f5;
}

.ff-comment-section h3 {
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.ff-comment-item {
    padding: 12px 0;
    border-bottom: 1px solid #fafafa;
}

.ff-comment-user {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
}

.ff-comment-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.ff-comment-input {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f5f5f5;
}

.ff-comment-input input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #eee;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    background: #fafafa;
}

.ff-comment-input input:focus {
    border-color: #ddd;
    background: #fff;
}

/* 阅读器底部 */
.ff-reader-footer {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f5f5f5;
}

.ff-reader-footer button {
    flex: 1;
}

/* 通用按钮优化 */
.action-btn {
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #333;
}

.action-btn:active {
    transform: scale(0.98);
}

.action-btn.secondary {
    background: #f5f5f5;
    color: #666;
}

.action-btn.secondary:hover {
    background: #eee;
}

/* 头部图标 */
.ff-header-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s;
}

.ff-header-icon:active {
    background: #f5f5f5;
}

/* 输入框样式 */
.ff-input-group input,
.ff-input-group textarea,
.ff-input-group select {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    transition: all 0.2s;
}

.ff-input-group input:focus,
.ff-input-group textarea:focus,
.ff-input-group select:focus {
    background: #fff;
    border-color: #ddd;
    outline: none;
}

.ff-input-group label {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

/* 模态框优化 */
.ff-modal-content {
    background: #fff;
    border-radius: 16px 16px 0 0;
}

/* 打赏弹窗 */
.ff-reward-author {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #f5f5f5;
}

.ff-gift-section {
    padding: 15px;
}

.ff-gift-section h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}
/* 作者碎碎念增强样式 */
.ff-author-note {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 16px;
    padding: 16px;
    margin-top: 24px;
    border: 1px solid #f0f0f0;
}

.ff-author-note-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.ff-author-note-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    background-size: cover;
    margin-right: 10px;
}

.ff-author-note-info {
    flex: 1;
}

.ff-author-note-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.ff-author-note-label {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.ff-author-note-content {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    white-space: pre-wrap;
}

.ff-author-note-content.long {
    max-height: 200px;
    overflow-y: auto;
}

.ff-author-note-actions {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.ff-note-action {
    font-size: 13px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.ff-note-action:hover {
    color: #666;
}

.ff-note-action i {
    margin-right: 4px;
}
/* 生成中卡片 */
.ff-generating-card {
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 12px;
    border: 1px dashed #e0e0e0;
    text-align: center;
}

.ff-generating-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #999;
    font-size: 14px;
}

.ff-generating-content i {
    font-size: 18px;
    color: #666;
}

/* 轻提示 */
.ff-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(26, 26, 26, 0.9);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

.ff-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 添加fa-bounce动画（如果没有FontAwesome 6） */
@keyframes fa-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.fa-bounce {
    animation: fa-bounce 1s ease infinite;
}
/* 板块选择列表样式 */
.ff-board-select-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 16px;
    margin-bottom: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #f5f5f5;
}

.ff-board-select-item:active {
    transform: scale(0.98);
    background: #fafafa;
}

.ff-board-select-item.add {
    border: 1px dashed #ddd;
    background: #fafafa;
}

.ff-board-select-item.add:active {
    background: #f5f5f5;
}

.ff-board-select-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-right: 14px;
    flex-shrink: 0;
}

.ff-board-select-item.add .ff-board-select-icon {
    background: transparent;
    color: #999;
    font-size: 18px;
}

.ff-board-select-info {
    flex: 1;
    min-width: 0;
}

.ff-board-select-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.ff-board-select-desc {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ff-board-select-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bbb;
    font-size: 12px;
    flex-shrink: 0;
}

.ff-board-select-meta i {
    font-size: 14px;
}
/* ========== 悬浮球层级修复 ========== */
#floating-ball,
.floating-ball,
.fb-container,
#fb-container,
[id*="floating"],
[class*="floating-ball"] {
    z-index: 999999 !important;
    pointer-events: auto !important;
}

/* 悬浮球菜单也要高层级 */
.fb-menu,
#fb-menu,
[class*="fb-menu"] {
    z-index: 999998 !important;
    pointer-events: auto !important;
}
/* 阅读器图标按钮 */
.ff-reader-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ff-icon-btn {
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s;
}

.ff-icon-btn:hover {
    color: #ff6b81;
    background: rgba(255, 107, 129, 0.1);
}

.ff-icon-btn.active {
    color: #ff6b81;
}

/* 点赞激活 */
.ff-icon-btn.fa-heart.active {
    color: #ff4757;
}

/* 收藏激活 */
.ff-icon-btn.fa-bookmark.active {
    color: #ffa502;
}

/* 评论区样式优化 */
.ff-comment-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.ff-comment-section h3 {
    margin: 0 0 15px 0;
    font-size: 15px;
}

.ff-comment-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.ff-comment-user {
    font-weight: bold;
    font-size: 13px;
    color: #333;
    margin-bottom: 5px;
}

.ff-comment-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.ff-comment-input {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.ff-comment-input input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.ff-comment-input input:focus {
    border-color: #ff6b81;
}
/* ===== 搜索框美化 ===== */
.ff-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 25px;
    padding: 8px 15px;
    margin: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.ff-search-box:focus-within {
    box-shadow: 0 4px 15px rgba(255,107,129,0.15);
    border-color: #ff6b81;
}

.ff-search-box i {
    color: #999;
    margin-right: 10px;
    font-size: 14px;
}

.ff-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    color: #333;
}

.ff-search-box input::placeholder {
    color: #bbb;
}

.ff-search-box button {
    background: linear-gradient(135deg, #ff6b81, #ff9f43);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 15px;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.2s;
}

.ff-search-box button:active {
    transform: scale(0.95);
}
/* 头像hover效果 */
.ff-me-avatar {
    position: relative;
    transition: transform 0.2s;
}

.ff-me-avatar:hover {
    transform: scale(1.05);
}

.ff-me-avatar:hover::after {
    content: '📷';
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 10px;
}
/* 头像容器样式修复 */
.ff-me-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    margin: 0 auto;
}

.ff-me-avatar:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255,107,129,0.3);
}

/* 移除之前的after伪元素避免干扰 */
.ff-me-avatar::after {
    display: none;
}
