@charset "UTF-8";

:root {
    --theme-color: #ff8200;
    --theme-light: #fff0e5;
    --link-color: #333333;
    --bg-color: #f2f4f6;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #939393;
    --border-color: #e6e6e6;
    --content-width: 1200px;
    --left-width: 200px;
    --right-width: 300px;
    --radius: 4px;
    --shadow: 0 1px 2px rgba(0,0,0,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-main);
    background: var(--bg-color);
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    color: var(--theme-color);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* 顶部横幅 */
.site-header {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
}

.header-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-logo .logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header-logo img {
    max-height: 44px;
}

.header-search {
    flex: 1;
    max-width: 520px;
}

.header-search form {
    display: block;
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.search-box i {
    padding-left: 14px;
    color: var(--text-muted);
    font-size: 18px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 12px;
    font-size: 14px;
    background: transparent;
    min-width: 0;
}

.search-box button {
    background: var(--theme-color);
    color: #fff;
    border: none;
    padding: 8px 22px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.search-box button:hover {
    opacity: 0.9;
}

.header-user {
    display: flex;
    align-items: center;
}

.header-user .login-btn {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s;
}

.header-user .login-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.header-user .user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
}

/* 主布局 */
.site-main {
    padding: 20px 0 40px;
}

.site-container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.left-sidebar {
    width: var(--left-width);
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.right-sidebar {
    width: var(--right-width);
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

/* 左侧导航 */
.left-nav {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px 0;
}

.left-nav ul {
    list-style: none;
}

.left-nav li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-main);
    transition: all 0.2s;
    font-size: 14px;
}

.left-nav li a i {
    font-size: 18px;
    margin-right: 12px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.left-nav li a:hover,
.left-nav li a.active {
    background: var(--theme-light);
    color: var(--theme-color);
}

.left-nav li a:hover i,
.left-nav li a.active i {
    color: var(--theme-color);
}

/* 分类标签 */
.feed-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: var(--card-bg);
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: 1px solid var(--border-color);
}

.feed-tab {
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 14px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.feed-tab:hover {
    color: var(--theme-color);
    background: var(--theme-light);
}

.feed-tab.active {
    background: var(--theme-light);
    color: var(--theme-color);
    font-weight: 500;
}

/* 发布框 */
.publish-box {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.publish-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.publish-input {
    flex: 1;
}

.publish-input textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    resize: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
}

.publish-input textarea:focus {
    border-color: var(--theme-color);
}

.publish-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.publish-tips {
    color: var(--text-muted);
    font-size: 13px;
    margin-right: 16px;
    cursor: pointer;
}

.publish-tips:hover {
    color: var(--theme-color);
}

.publish-actions button {
    background: var(--theme-color);
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.publish-actions button:hover {
    opacity: 0.9;
}

/* 微博卡片 */
.feed-list {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.feed-card {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.feed-card:hover {
    background: #fafafa;
}

.feed-card:last-child {
    border-bottom: none;
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.feed-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.feed-meta {
    flex: 1;
    min-width: 0;
}

.feed-name {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 600;
}

.feed-name a {
    color: var(--text-main);
}

.feed-name a:hover {
    color: var(--theme-color);
}

.verified-v {
    color: var(--theme-color);
    font-size: 16px;
}

.feed-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.feed-follow {
    flex-shrink: 0;
    padding: 4px 14px;
    border: 1px solid var(--theme-color);
    color: var(--theme-color);
    border-radius: 16px;
    font-size: 13px;
    transition: all 0.2s;
}

.feed-follow:hover {
    background: var(--theme-color);
    color: #fff;
}

.feed-body {
    margin-left: 60px;
}

.feed-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.5;
}

.feed-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 10px;
    word-break: break-all;
}

.feed-detail-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.5;
}

.feed-media {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 520px;
}

.feed-media img {
    width: 100%;
    display: block;
}

/* 九宫格图片 */
.feed-img-grid {
    display: grid;
    gap: 4px;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
}
.feed-img-grid a {
    display: block;
    overflow: hidden;
    position: relative;
}
.feed-img-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s;
}
.feed-img-grid a:hover img {
    transform: scale(1.04);
}

/* 1张：大图 */
.feed-img-1 {
    grid-template-columns: 1fr;
    max-width: 480px;
}
.feed-img-1 a {
    aspect-ratio: 4 / 3;
}

/* 2-4张：2列 */
.feed-img-2 { grid-template-columns: repeat(2, 1fr); }
.feed-img-2 a,
.feed-img-4 { grid-template-columns: repeat(2, 1fr); }
.feed-img-4 a { aspect-ratio: 1 / 1; }
.feed-img-2 a { aspect-ratio: 1 / 1; }

/* 3张：前两张2列，第三张跨2列 */
.feed-img-3 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}
.feed-img-3 a:nth-child(1),
.feed-img-3 a:nth-child(2) {
    aspect-ratio: 1 / 1;
}
.feed-img-3 a:nth-child(3) {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}

/* 5-6张：3列 */
.feed-img-5,
.feed-img-6 {
    grid-template-columns: repeat(3, 1fr);
}
.feed-img-5 a,
.feed-img-6 a {
    aspect-ratio: 1 / 1;
}

/* 7-9张：3列九宫格 */
.feed-img-7,
.feed-img-8,
.feed-img-9 {
    grid-template-columns: repeat(3, 1fr);
}
.feed-img-7 a,
.feed-img-8 a,
.feed-img-9 a {
    aspect-ratio: 1 / 1;
}

.feed-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-main);
}

.feed-content p {
    margin-bottom: 12px;
}

.feed-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px 0;
}

.feed-footer {
    display: flex;
    margin-top: 14px;
    margin-left: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.feed-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 13px;
    padding: 6px 0;
    transition: all 0.2s;
}

.feed-action:hover {
    color: var(--theme-color);
}

.feed-action i {
    font-size: 16px;
}

/* 详情页 */
.feed-detail {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.detail-card {
    border-bottom: none;
}

.feed-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
}

.feed-nav a {
    flex: 1;
    padding: 10px 14px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.2s;
}

.feed-nav a:hover {
    background: var(--theme-light);
}

/* 评论区 */
.comment-area {
    padding: 20px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.comment-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-title i {
    color: var(--theme-color);
}

.comment-form {
    margin-bottom: 20px;
}

.comment-list .comment-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-main {
    flex: 1;
}

.comment-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-name {
    font-weight: 600;
    color: var(--text-main);
}

.comment-time {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
}

.comment-empty {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 14px;
}

/* 右侧卡片 */
.sidebar-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: hidden;
}

.blogger-card {
    position: relative;
}

.blogger-cover {
    height: 80px;
    background: linear-gradient(135deg, var(--theme-color), #ff6a00);
}

.blogger-info {
    padding: 0 16px 16px;
    text-align: center;
}

.blogger-avatar {
    display: block;
    margin-top: -36px;
    margin-bottom: 8px;
}

.blogger-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.blogger-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 600;
}

.blogger-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 8px 0 14px;
}

.blogger-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

.blogger-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.blogger-stat strong {
    font-size: 16px;
    color: var(--text-main);
}

.blogger-stat span {
    font-size: 12px;
    color: var(--text-muted);
}

.ad-card .ad-image img {
    width: 100%;
    display: block;
    height: 160px;
    object-fit: cover;
}

.ad-image-placeholder {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: var(--text-muted);
    font-size: 48px;
}

.ad-content {
    padding: 14px;
    text-align: center;
}

.ad-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.ad-btn {
    display: inline-block;
    padding: 6px 20px;
    background: var(--theme-color);
    color: #fff;
    border-radius: 16px;
    font-size: 13px;
    transition: opacity 0.2s;
}

.ad-btn:hover {
    opacity: 0.9;
    color: #fff;
}

.card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.card-title h3 {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-title h3 i {
    color: var(--theme-color);
}

.card-title .refresh {
    color: var(--text-muted);
    font-size: 16px;
}

.hot-list {
    padding: 8px 0;
}

.hot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    transition: background 0.2s;
}

.hot-item:hover {
    background: #fafafa;
}

.hot-rank {
    width: 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    font-style: italic;
    color: var(--text-muted);
    flex-shrink: 0;
}

.hot-rank.top {
    color: var(--theme-color);
}

.hot-title {
    flex: 1;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-tag {
    font-size: 12px;
    padding: 1px 4px;
    border-radius: 4px;
    flex-shrink: 0;
}

.hot-tag.hot {
    background: #fff0e5;
    color: var(--theme-color);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    padding: 16px;
    gap: 8px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 4px;
    background: #f5f5f5;
    font-size: 13px;
    color: var(--text-main);
}

.pagination a:hover {
    background: var(--theme-light);
    color: var(--theme-color);
}

.pagination .current {
    background: var(--theme-color);
    color: #fff;
}

.feed-loading,
.feed-no-more {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.feed-loading i {
    margin-right: 6px;
}

.ri-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.feed-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.feed-empty i {
    font-size: 48px;
    margin-bottom: 12px;
    color: var(--theme-color);
    opacity: 0.6;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 8px 20px;
    background: var(--theme-color);
    color: #fff;
    border-radius: 20px;
    transition: opacity 0.2s;
}

.back-home:hover {
    opacity: 0.9;
    color: #fff;
}

/* 页脚 */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    margin-top: 20px;
}

.footer-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--theme-color);
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-icp {
    margin-left: 10px;
}

/* 响应式 */
@media (max-width: 1100px) {
    .left-sidebar {
        display: none;
    }
    .right-sidebar {
        width: 260px;
    }
}

@media (max-width: 900px) {
    .site-container {
        flex-direction: column;
    }
    .right-sidebar {
        width: 100%;
        position: static;
    }
    .main-content {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        padding: 16px;
    }
    .header-search {
        width: 100%;
        max-width: none;
    }
    .header-user {
        display: none;
    }
    .feed-header {
        gap: 10px;
    }
    .feed-avatar img {
        width: 40px;
        height: 40px;
    }
    .feed-body {
        margin-left: 50px;
    }
    .feed-footer {
        margin-left: 0;
    }
    .feed-media {
        max-width: 100%;
    }
    .feed-img-1 {
        max-width: 100%;
    }
    .blogger-stats {
        gap: 16px;
    }
}

/* ============================================================
 * 用户中心交互样式
 * ============================================================ */

/* ===== 回到顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--theme-color, #ff8200);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* ===== 登录弹窗 ===== */
.login-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.login-modal {
    position: relative;
    width: 380px;
    max-width: 92%;
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    animation: loginModalIn 0.25s ease;
}
@keyframes loginModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.login-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.login-modal-close:hover { background: #e0e0e0; }
.login-modal-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}
.login-tab {
    font-size: 16px;
    color: #999;
    cursor: pointer;
    padding-bottom: 8px;
    position: relative;
    transition: color 0.2s;
}
.login-tab.active {
    color: var(--theme-color, #ff8200);
    font-weight: 600;
}
.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--theme-color, #ff8200);
    border-radius: 1px;
}
.login-tab-content { display: none; }
.login-tab-content.active { display: block; }
.login-form-body { margin-top: 8px; }
.login-field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f6f8;
    border-radius: 10px;
    padding: 0 14px;
    margin-bottom: 14px;
    height: 46px;
    transition: box-shadow 0.2s;
}
.login-field:focus-within {
    box-shadow: 0 0 0 2px var(--theme-color, #ff8200);
}
.login-field i { color: #999; font-size: 18px; flex-shrink: 0; }
.login-field input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    height: 100%;
    color: #333;
}
.login-pwd-toggle {
    cursor: pointer;
    color: #999;
    flex-shrink: 0;
    padding: 4px;
}
.login-pwd-toggle:hover { color: #666; }
.login-options {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
    color: #666;
}
.login-options label { cursor: pointer; display: flex; align-items: center; gap: 6px; }
.login-submit-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 10px;
    background: var(--theme-color, #ff8200);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}
.login-submit-btn:hover { opacity: 0.9; }
.login-submit-btn:active { transform: scale(0.98); }
.login-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.login-msg {
    text-align: center;
    font-size: 13px;
    margin-top: 12px;
    min-height: 18px;
}
.login-msg.success { color: #52c41a; }
.login-msg.error { color: #ff4d4f; }

/* ===== Toast 提示 ===== */
.lf-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    max-width: 80%;
    text-align: center;
}
.lf-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ===== 点赞/收藏/关注操作栏 ===== */
.lf-action-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.lf-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}
.lf-action-btn:hover {
    background: #f5f5f5;
    color: #333;
}
.lf-action-btn i { font-size: 18px; }
.lf-action-btn.active {
    color: var(--theme-color, #ff8200);
}
.lf-action-btn.active i {
    color: var(--theme-color, #ff8200);
}
.lf-action-count { font-weight: 600; }
.lf-action-label { font-size: 13px; }

/* 关注按钮（feed 区域） */
.lf-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 1px solid var(--theme-color, #ff8200);
    color: var(--theme-color, #ff8200);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.lf-follow-btn:hover {
    background: var(--theme-color, #ff8200);
    color: #fff;
}
.lf-follow-btn.following {
    background: var(--theme-color, #ff8200);
    color: #fff;
}
.lf-follow-btn.following:hover {
    opacity: 0.85;
}

/* ===== 表情面板 ===== */
.smiley-box {
    display: none;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px;
    max-width: 320px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: absolute;
    z-index: 100;
}
.smiley-box img {
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    transition: transform 0.15s;
}
.smiley-box img:hover {
    transform: scale(1.2);
}

/* ===== 评论点赞 ===== */
.lf-comment-like {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #999;
    padding: 4px 8px;
    border-radius: 12px;
    transition: color 0.2s, background 0.2s;
}
.lf-comment-like:hover { background: #f5f5f5; color: #666; }
.lf-comment-like.active { color: var(--theme-color, #ff8200); }
.lf-comment-like.active i { color: var(--theme-color, #ff8200); }

/* ===== 用户中心页面适配 ===== */
.user-center-wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}
.uc-container {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.uc-tabs {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    -webkit-overflow-scrolling: touch;
}
.uc-tab {
    padding: 14px 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.uc-tab:hover { color: #333; }
.uc-tab.active {
    color: var(--theme-color, #ff8200);
    border-bottom-color: var(--theme-color, #ff8200);
    font-weight: 600;
}
.uc-content {
    padding: 20px;
}

/* ===== WangEditor 编辑器适配 ===== */
#wang-editor {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}
#wang-editor .w-e-toolbar {
    border-bottom: 1px solid #e0e0e0;
}
#wang-editor .w-e-text-container {
    min-height: 300px;
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
    .lf-action-bar {
        gap: 12px;
    }
    .lf-action-btn {
        padding: 6px 8px;
        font-size: 13px;
    }
    .login-modal {
        width: 92%;
        padding: 24px 20px 20px;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
