*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 确保 HTML hidden 属性在所有端一致生效（避免被自定义 display 覆盖） */
[hidden] {
    display: none !important;
}

/* 默认隐藏手机端顶部导航（仅在移动端断点内显示） */
.mobile-top-bar {
    display: none;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    background: #f2f2f5;
    color: #111;
}

body {
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow-x: hidden; /* 防止移动端因内容溢出出现横向滚动 */
}

.page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 顶部栏 */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    width: 100%;
    max-width: 1200px; /* 与主体三栏同宽更协调 */
    margin-left: auto;
    margin-right: auto;
    min-height: 64px;
}

/* PC 端：顶部导航固定 */
@media (min-width: 901px) {
    .top-bar {
        position: fixed;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 3600;
    }

    /* 给页面内容留出固定导航空间 */
    .page {
        padding-top: 104px;
    }
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.site-logo-img {
    height: 38px;
    width: auto;
    display: block;
}

.avatar-badge-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.verified-badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
    user-select: none;
    z-index: 5; /* 确保不被头像图片遮挡 */
}

.verified-badge--md {
    width: 16px;
    height: 16px;
    font-size: 11px;
}

.verified-badge--lg {
    width: 22px;
    height: 22px;
    font-size: 12px;
    border-width: 3px;
}

.verified-badge--yellow {
    background: #fbbf24;
    color: #7c2d12;
}

.verified-badge--blue {
    background: #3b82f6;
    color: #ffffff;
}

.logo {
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.02em;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    position: relative;
    padding: 6px 12px;
    border-radius: 8px;
    color: #555f73;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.18s ease-out;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 4px;
    height: 2px;
    border-radius: 999px;
    background: transparent;
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.03);
}

.nav-link.active {
    background: transparent;
    color: #ff8200;
    font-weight: 600;
}

.nav-link.active::after {
    background: #ff8200;
}

.nav-link-plain {
    background: transparent !important;
}

.nav-link-plain:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #707a8a;
    cursor: pointer;
    transition: background 0.18s ease-out, transform 0.1s ease-out;
}

.icon-button:hover {
    background: rgba(0, 0, 0, 0.03);
    transform: translateY(-1px);
}

.icon-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.avatar {
    background: transparent;
}

.avatar-text {
    font-size: 14px;
    font-weight: 600;
}

/* 主体布局 */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

/* 顶部导航栏（简洁风） */
/* 顶部导航相关样式已移除 */

.primary-btn {
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #0b1120;
    background: #fbbf24;
    box-shadow: 0 10px 25px rgba(248, 250, 252, 0.18);
    transition: box-shadow 0.18s ease-out, transform 0.1s ease-out;
}

.primary-btn:hover {
    box-shadow: 0 12px 30px rgba(248, 250, 252, 0.28);
    transform: translateY(-1px);
}

.search-filters {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    justify-content: center;
}

.filter-btn {
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: transparent;
    color: #f1f1f1;
    transition: background 0.18s ease-out, color 0.18s ease-out;
}

.filter-btn:hover {
    background: rgba(0, 0, 0, 0.18);
}

.filter-btn.active {
    background: rgba(0, 0, 0, 0.28);
}

/* 内容区布局 */
.content-layout {
    margin-top: 12px;
    display: grid;
    /* 左侧固定 220，中间稍加宽，右侧略收窄，让整体和上方搜索背景更对齐 */
    grid-template-columns: 220px minmax(660px, 780px) minmax(240px, 300px);
    gap: 16px;
    width: 100%;
    max-width: 1200px;      /* 与搜索区域保持同一总宽度 */
    margin-left: auto;
    margin-right: auto;
    align-items: flex-start;
}

.content-main {
    background: #ffffff;
    border-radius: 6px;
    padding: 16px 18px 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    min-height: 60vh;
    min-width: 0; /* 防止 grid 子项被内容撑破（手机端横向溢出） */
}

.content-side {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    position: sticky;
    top: 56px;
    align-self: flex-start;
    min-width: 0; /* 防止 grid 子项被内容撑破（手机端横向溢出） */
}

/* 左侧导航栏（类似微博侧边菜单） */
.home-left-nav {
    background: #ffffff;
    border-radius: 6px;
    padding: 16px 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    font-size: 14px;
    position: sticky;
    top: 56px;
    align-self: flex-start;
    min-width: 0;
}

.home-left-section-title {
    font-size: 13px;
    color: #9aa0ad;
    margin-bottom: 8px;
}

.home-left-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-left-menu-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 6px;
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    text-decoration: none;
}

.home-left-menu-item:hover,
.home-left-menu-item.active {
    background: #f5f6fa;
    color: #ff8200;
}

/* 首页右侧登录卡片 */
.home-login-card {
    border-radius: 8px;
    background: linear-gradient(135deg, #fff9f2, #ffffff);
    border: 1px solid #ffe3c4;
    padding: 16px 16px 18px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.home-login-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.home-login-close-btn {
    display: none; /* 默认不显示，仅移动端弹窗时显示 */
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.02);
    color: #111;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.home-login-close-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.home-login-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
}

.home-login-subtitle {
    margin: 0 0 10px;
    font-size: 12px;
    color: #9aa0ad;
}

.home-login-form .form-group label {
    font-size: 12px;
}

.home-login-form .form-group input {
    font-size: 13px;
    background: #ffffff;
    border-color: #ffd1a3;
    color: #222222;
}

.home-login-form .form-group input:focus {
    border-color: #ff9200;
    box-shadow: 0 0 0 1px rgba(255, 146, 0, 0.65);
    background: #ffffff;
}

/* 首页右侧登录后用户信息 */
.home-user-panel {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 130, 0, 0.45);
}

.home-user-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-user-avatar-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-flex;
}

.home-user-avatar-wrap .verified-badge {
    right: -2px;
    bottom: -2px;
}

.home-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffe6c7;
}

.home-user-name {
    font-size: 14px;
    font-weight: 600;
}

.home-user-email {
    font-size: 12px;
    color: #9aa0ad;
}

.home-user-verified-label {
    margin-top: 2px;
    font-size: 12px;
    color: #9aa0ad; /* 纯文本展示，不做标签/强调色 */
    display: block;
}

.home-user-meta {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 11px;
    color: #9aa0ad;
}

.home-user-meta-item {
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 130, 0, 0.06);
}

.home-user-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.home-user-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 12px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.home-user-btn.primary {
    background: #ff8200;
    border-color: #ff8200;
    color: #ffffff;
}

.home-user-btn.ghost {
    background: #ffffff;
    border-color: #ffe3c4;
    color: #ff8200;
}

.home-user-btn.primary:hover {
    box-shadow: 0 4px 10px rgba(255, 130, 0, 0.45);
}

.home-user-btn.ghost:hover {
    background: #fff5e6;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 16px;
    margin: 0;
}

.link-more {
    font-size: 13px;
    color: #94b6ff;
    text-decoration: none;
}

.link-more:hover {
    text-decoration: underline;
}

/* 新闻栅格 */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-card {
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #f0f0f2;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    cursor: pointer;
    transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, border-color 0.16s ease-out;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    border-color: #ffe3c4;
}

.news-image-wrap {
    position: relative;
    padding-top: 58%;
    overflow: hidden;
}

.news-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-body {
    padding: 10px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-tag {
    align-self: flex-start;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff5e6;
    color: #ff8200;
}

.news-title {
    font-size: 14px;
    margin: 0;
    line-height: 1.35;
}

.news-title a {
    color: inherit;
    text-decoration: none;
}

.news-title a:hover {
    text-decoration: underline;
}

.news-meta {
    margin-top: 2px;
    font-size: 12px;
    color: #9aa0ad;
}

/* 底部列表 */
.news-list {
    margin-top: 14px;
    border-top: 1px solid #f0f0f2;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-list-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555f73;
    text-decoration: none;
    padding: 4px 2px;
    border-radius: 8px;
    transition: background 0.16s ease-out;
}

.news-list-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.news-list-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #7ea6ff;
}

.news-list-text {
    flex: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* 中栏顶部标签导航（类似微博“热门 / 同城 / 实时 ...”） */
.feed-tabs {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #f0f0f2;
    padding: 4px 2px 0;
    margin-bottom: 8px;
}

.feed-tab {
    position: relative;
    padding: 10px 0 8px;
    font-size: 14px;
    color: #555f73;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.feed-tab::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: transparent;
}

.feed-tab.active {
    color: #ff8200;
    font-weight: 600;
}

.feed-tab.active::after {
    background: #ff8200;
}

/* 中栏信息流卡片（类似微博卡片风格） */
.feed-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feed-card {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #f0f0f2;
    padding: 10px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: box-shadow 0.12s ease-out, transform 0.12s ease-out, border-color 0.12s ease-out;
    width: 100%;
    max-width: 100%;
}

.feed-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: #ffe3c4;
    transform: translateY(-2px);
}

.feed-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.feed-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0; /* 让右侧热标/统计不被挤出屏幕 */
}

.feed-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #ff8200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.feed-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    background: #ff8200;
}

.feed-header-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.feed-header-main-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.feed-author-name {
    font-size: 14px;
    color: #111111;
    word-break: break-word;
}

.feed-meta {
    font-size: 12px;
    color: #9aa0ad;
}

.feed-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    background: #fff5e6;
    color: #ff8200;
}

.feed-content {
    font-size: 14px;
    line-height: 1.5;
    color: #111111;
}

.feed-title {
    font-weight: 500;
    margin-bottom: 6px;
    color: #111111;
    word-break: break-word;
}

.feed-content-text {
    font-size: 13px;
    line-height: 1.6;
    color: #555f73;
    margin-top: 4px;
}

.feed-more-link {
    color: #ff8200;
    text-decoration: none;
    font-size: 13px;
    margin-left: 4px;
    transition: color 0.16s ease-out;
}

.feed-more-link:hover {
    color: #ff6a00;
    text-decoration: underline;
}

.feed-image-wrap {
    margin-top: 4px;
    border-radius: 6px;
    overflow: hidden;
}

.feed-image {
    width: 100%;
    display: block;
}

.feed-footer {
    margin-top: 2px;
    border-top: 1px solid #f5f5f7;
    padding-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #9aa0ad;
}

.feed-footer-group {
    display: flex;
    gap: 12px;
}

.feed-footer-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* 文章列表加载和空状态 */
.feed-loading,
.feed-empty {
    padding: 20px;
    text-align: center;
    color: #9aa0ad;
    font-size: 13px;
}

.feed-loading {
    color: #555f73;
}

/* 文章详情页样式 */
.article-detail {
    padding: 20px 0;
}

.article-loading,
.article-error {
    padding: 40px 20px;
    text-align: center;
    color: #9aa0ad;
    font-size: 14px;
}

.article-error {
    color: #ff8d8d;
}

.article-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f2;
}

.article-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: #111111;
    margin: 0 0 16px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-author-avatar-wrap {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.article-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ff8200;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
    object-fit: cover;
}

.article-author-avatar[src] {
    display: inline-block;
}

.article-author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.article-author-main-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #111111;
}

.article-time {
    font-size: 12px;
    color: #9aa0ad;
}

.article-stats {
    font-size: 12px;
    color: #9aa0ad;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.article-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    background: #fff5e6;
    color: #ff8200;
}

.article-body {
    margin-bottom: 24px;
    line-height: 1.8;
    color: #333333;
}

.article-text {
    font-size: 15px;
}

.article-text p {
    margin: 0 0 12px;
}

.article-text p:last-child {
    margin-bottom: 0;
}

.article-footer {
    padding-top: 16px;
    border-top: 1px solid #f0f0f2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.article-actions {
    display: flex;
    gap: 16px;
}

.article-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #555f73;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.16s ease-out, border-color 0.16s ease-out;
}

.article-action-btn:hover {
    background: #f5f6fa;
    border-color: #d4d4d8;
}

.article-action-btn.active {
    background: #f0f4ff;
    border-color: #3b82f6;
    color: #2563eb;
}

.article-follow-btn {
    margin-left: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #ffedd5;
    background: #fff7ed;
    color: #c05621;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.16s ease-out, border-color 0.16s ease-out, color 0.16s ease-out;
}

.article-follow-btn:hover {
    background: #ffedd5;
    border-color: #fed7aa;
}

.article-follow-btn.active {
    background: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
}

/* 评论列表样式 */
.article-comment-item {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.article-comment-item:last-child {
    border-bottom: none;
}

.article-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 12px;
    color: #9aa0ad;
}

.article-comment-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.article-comment-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.article-comment-username {
    font-weight: 500;
    color: #111827;
}

.feed-hot-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0 6px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 122, 0, 0.06);
    border: 1px solid rgba(255, 122, 0, 0.35);
}

.feed-hot-icon {
    width: 14px;
    height: 14px;
    display: block;
}

.feed-hot-text {
    font-size: 11px;
    font-weight: 600;
    color: #ff5a1f;
}

.article-comment-time {
    font-size: 12px;
    color: #9aa0ad;
}

.article-comment-content {
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
    word-break: break-word;
}

/* 首页 & 详情页 用户悬停卡片 */
.user-hover-card {
    position: absolute;
    z-index: 2000;
    min-width: 260px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: opacity 0.16s ease-out;
}

.user-hover-card-inner {
    padding: 12px 16px 10px;
}

.user-hover-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.user-hover-avatar-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffedd5;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 让认证 V 标可以“贴在头像外侧”，与信息流卡片头像一致 */
    overflow: visible;
    flex-shrink: 0;
    position: relative;
}

.user-hover-avatar-img,
.user-hover-avatar-fallback {
    border-radius: 50%;
}

.user-hover-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.user-hover-avatar-fallback {
    font-size: 18px;
    font-weight: 600;
    color: #c05621;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-hover-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-hover-name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.user-hover-meta {
    font-size: 12px;
    color: #9ca3af;
}

.user-hover-stats {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    gap: 4px;
}

.article-comment-follow-btn {
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #fee2e2;
    background: #ffffff;
    color: #b91c1c;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.16s ease-out, border-color 0.16s ease-out, color 0.16s ease-out;
}

.article-comment-follow-btn:hover {
    background: #fee2e2;
}

.article-comment-follow-btn.active {
    background: #b91c1c;
    color: #ffffff;
    border-color: #b91c1c;
}

.article-back-link {
    font-size: 13px;
    color: #555f73;
    text-decoration: none;
    transition: color 0.16s ease-out;
}

.article-back-link:hover {
    color: #ff8200;
}

/* 中栏发帖区域样式 */
.feed-post-box {
    margin-top: 10px;
    margin-bottom: 8px;
    padding: 10px 12px 8px;
    border-radius: 6px;
    border: 1px solid #f0f0f2;
    background: #ffffff;
}

.feed-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.feed-post-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ff8200;
    object-fit: cover;
    flex-shrink: 0;
}

.feed-post-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feed-post-hello {
    font-size: 14px;
    color: #111111;
}

.feed-post-tip {
    font-size: 12px;
    color: #9aa0ad;
}

.feed-post-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feed-post-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feed-post-fields input,
.feed-post-fields textarea {
    width: 100%;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    resize: vertical;
}

.feed-post-fields input::placeholder,
.feed-post-fields textarea::placeholder {
    color: #b0b8c5;
}

.feed-post-fields input:focus,
.feed-post-fields textarea:focus {
    border-color: #94b6ff;
    box-shadow: 0 0 0 1px rgba(148, 182, 255, 0.4);
}

.feed-post-footer {
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.feed-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #555f73;
}

.feed-post-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.feed-post-checkbox input {
    width: 14px;
    height: 14px;
}

.feed-post-meta select {
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #555f73;
}

.feed-post-submit {
    min-width: 96px;
}

.feed-post-no-perm {
    margin-top: 6px;
    font-size: 12px;
    color: #9aa0ad;
}

/* 发帖框内的提示信息，缩小与按钮之间的间距 */
.feed-post-box .form-message {
    margin-top: 3px;
    margin-bottom: 0;
}

/* 右侧小部件 */
.widget-card {
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #f0f0f2;
    padding: 10px 10px 12px;
    margin-bottom: 10px;
}

.widget-card.mini {
    margin-top: 10px;
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.widget-title {
    margin: 0;
    font-size: 13px;
}

.widget-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.widget-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-label {
    color: #cfd6e2;
}

.widget-value {
    font-weight: 500;
}

.trend-up {
    color: #10b981;
}

.trend-down {
    color: #ef4444;
}

.mini-title {
    margin: 0 0 4px;
    font-size: 13px;
}

.mini-desc {
    margin: 0;
    font-size: 12px;
    color: #a1b0c5;
}

/* 顶部头像与下拉菜单 */
.avatar-wrapper {
    position: relative;
    display: none; /* 默认未登录不显示头像区，登录后用 JS 显示 */
}

.avatar-img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-dropdown {
    position: absolute;
    right: 0;
    top: 40px;
    min-width: 220px;
    padding: 10px 10px 8px;
    border-radius: 14px;
    background: rgba(9, 19, 34, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.16s ease-out, transform 0.16s ease-out;
    z-index: 20;
}

.avatar-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.avatar-dropdown-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 6px;
}

.avatar-dropdown-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-dropdown-name {
    font-size: 14px;
}

.avatar-dropdown-email {
    font-size: 12px;
    color: #a1b0c5;
}

.avatar-dropdown-item {
    display: block;
    width: 100%;
    padding: 6px 6px;
    border-radius: 8px;
    font-size: 13px;
    color: #e3e9f3;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
}

.avatar-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* 登录 / 资料通用布局 */
.auth-page,
.profile-page {
    align-items: flex-start;
}

.auth-main,
.profile-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
}

.auth-card {
    width: 100%;
    max-width: 520px;
    background: transparent;
    border-radius: 20px;
    padding: 22px 24px 26px;
    box-shadow: none;
    backdrop-filter: blur(18px);
}

/* 我的主页整体布局：更宽、更接近首页信息流 */
.profile-page .profile-main {
    justify-content: flex-start;
}

.profile-page .profile-card {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    background: transparent; /* 不设置背景色，露出全站背景 */
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.auth-title {
    margin: 0 0 4px;
    font-size: 20px;
}

.auth-subtitle {
    margin: 0 0 18px;
    font-size: 13px;
    color: #a1b0c5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 13px;
    color: #cfd6e2;
}

.form-group input {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(5, 14, 27, 0.96);
    color: #f5f5f5;
    font-size: 14px;
    outline: none;
    transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out;
}

.form-group input::placeholder {
    color: #6f7d93;
}

.form-group input:focus {
    border-color: #7ea6ff;
    box-shadow: 0 0 0 1px rgba(126, 166, 255, 0.8);
    background: rgba(5, 14, 27, 1);
}

.form-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.auth-submit {
    min-width: 120px;
}

.form-message {
    margin-top: 6px;
    font-size: 13px;
}

.home-login-card .form-message {
    margin-top: 4px;
    margin-bottom: 0;
}

.icp-footer {
    margin-top: 10px;
    font-size: 12px;
    color: #9aa0ad;
}

.icp-link {
    color: inherit;
    text-decoration: none;
}

.icp-link:hover {
    color: #555f73;
    text-decoration: none;
}

.form-message-info {
    color: #cfd6e2;
}

.form-message-success {
    color: #7ee2a8;
}

.form-message-error {
    color: #ff8d8d;
}

/* 个人资料 */
.profile-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.profile-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background: transparent;
}

.avatar-upload-btn {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(9, 19, 34, 0.9);
    color: #cfd6e2;
    cursor: pointer;
    transition: background 0.16s ease-out, border-color 0.16s ease-out;
}

.avatar-upload-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
}

.profile-username {
    margin: 0 0 4px;
    font-size: 20px;
    color: #111111;
}

.profile-role {
    margin: 0;
    font-size: 13px;
    color: #555555;
}

.profile-info-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.profile-info-label {
    color: #777777;
}

.profile-info-value {
    color: #111111;
}

.profile-loading {
    font-size: 13px;
    color: #555555;
}

.profile-error {
    font-size: 13px;
    color: #ff8d8d;
}

/* 个人资料 - 细节样式与分区 */
.profile-content {
    animation: profile-fade-in 0.22s ease-out;
    padding: 12px 0 0;
    border-top: 1px solid #e5e7eb;
}

.profile-sections {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 12px;
}

.profile-section {
    padding: 10px 10px 11px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid #e5e7eb;
}

.profile-section-title {
    margin: 0 0 4px;
    font-size: 13px;
    color: #111111;
}

.profile-section-desc {
    margin: 0 0 8px;
    font-size: 12px;
    color: #777777;
}

.profile-section-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: #555555;
}

.profile-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid #d4d4d8;
    font-size: 11px;
    color: #111111;
}

.profile-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

.profile-actions {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #777777;
}

.profile-actions-main {
    display: flex;
    gap: 8px;
}

.profile-actions-link {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #d4d4d8;
    background: transparent;
    color: #111111;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.16s ease-out, border-color 0.16s ease-out;
}

.profile-actions-link:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: #a3a3a3;
}

.profile-actions-hint {
    opacity: 0.8;
}

/* 我的主页 - 互动与内容 */
.profile-metrics {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    font-size: 12px;
}

.profile-metric-card {
    padding: 8px 10px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-metric-label {
    color: #777777;
}

.profile-metric-value {
    font-size: 15px;
    font-weight: 600;
    color: #111111;
}

.profile-extra {
    margin-top: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 12px;
}

.profile-card-block {
    padding: 10px 10px 11px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid #e5e7eb;
}

.profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.profile-card-title {
    margin: 0;
    font-size: 13px;
    color: #111111;
}

.profile-card-subtitle {
    margin: 0;
    font-size: 11px;
    color: #777777;
}

.profile-list {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.profile-list-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 6px;
    border-radius: 8px;
    background: transparent;
}

.profile-list-title {
    color: #111111;
}

.profile-list-meta {
    font-size: 11px;
    color: #777777;
}

.profile-empty {
    margin: 4px 0 0;
    font-size: 12px;
    color: #777777;
}

/* 我的主页在小屏下布局调整 */
@media (max-width: 768px) {
    .profile-page .profile-card {
        max-width: 100%;
    }

    .profile-extra {
        grid-template-columns: 1fr;
    }
}

@keyframes profile-fade-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式 */
@media (max-width: 1024px) {
    .page {
        padding-inline: 16px;
    }

    .content-layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
        grid-template-rows: auto auto;
    }

    .home-left-nav {
        grid-column: 1 / -1;
        order: -1;
    }
}

/* 大屏手机/手机横屏：改为单列，卡片充满屏幕宽度 */
@media (max-width: 900px) {
    /* 移动端不显示 PC 顶部栏，避免双顶栏 */
    .top-bar {
        display: none !important;
    }

    .content-layout {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .home-left-nav {
        display: none;
    }

    .content-main,
    .content-side {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .feed-card {
        width: 100%;
        max-width: 100%;
    }

    /* 手机端顶部导航 */
    .mobile-top-bar {
        position: fixed;
        top: 8px;
        left: 12px;
        right: 12px;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 12px;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 12px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
        z-index: 3500;
    }

    .mobile-top-logo {
        font-weight: 700;
        letter-spacing: 0.02em;
        color: #111;
        text-decoration: none;
        font-size: 16px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-top-logo-img {
        height: 33px;
        width: auto;
        display: block;
    }

    .mobile-top-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-top-btn {
        height: 34px;
        padding: 0 12px;
        border-radius: 999px;
        border: 1px solid rgba(255, 130, 0, 0.35);
        background: rgba(255, 130, 0, 0.08);
        color: #ff6a00;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-top-btn-ghost {
        border-color: rgba(15, 23, 42, 0.12);
        background: rgba(0, 0, 0, 0.02);
        color: #111;
        font-weight: 600;
    }

    .mobile-top-avatar {
        width: 22px;
        height: 22px;
        border-radius: 999px;
        object-fit: cover;
        background: #ffe6c7;
        flex-shrink: 0;
    }

    .mobile-top-account-text {
        font-size: 13px;
        color: #111;
    }

    /* 给页面内容留出顶部导航空间 */
    .page {
        padding-top: 74px;
    }

    /* 手机端：右侧登录卡片默认隐藏（通过顶部按钮弹出） */
    .home-login-card {
        display: none;
    }

    .mobile-login-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 3400;
    }

    body.mobile-login-open {
        overflow: hidden;
    }

    body.mobile-login-open .mobile-login-backdrop {
        display: block;
    }

    body.mobile-login-open .home-login-card {
        display: block;
        position: fixed;
        left: 12px;
        right: 12px;
        top: 70px;
        margin: 0 auto;
        max-width: 520px;
        z-index: 3600;
        box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
        border-radius: 12px;
    }

    body.mobile-login-open .home-login-close-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* 手机端不展示备案号 */
    .icp-footer {
        display: none;
    }
}

@media (max-width: 768px) {
    /* 再兜底一次：避免某些设备/样式顺序导致 PC 顶部栏出现 */
    .top-bar {
        display: none !important;
    }

    .page {
        padding: 10px 12px 24px;
        padding-top: 74px; /* 防止被手机端顶部栏遮挡 */
        gap: 12px;
    }

    .top-bar {
        padding: 8px 12px;
    }

    .top-bar-left {
        gap: 12px;
    }

    .top-nav {
        display: none;
    }

    .search-section {
        margin-top: 20px;
    }

    .search-bar {
        flex-direction: column;
        align-items: stretch;
        border-radius: 18px;
        padding: 10px 10px 10px 14px;
    }

    .search-right {
        justify-content: flex-end;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 8px;
    }

    /* 手机端隐藏 PC 左侧菜单栏 */
    .home-left-nav {
        display: none;
    }

    /* 主内容在手机端更紧凑 */
    .content-main {
        padding: 12px 12px 14px;
        border-radius: 8px;
        min-height: unset;
    }

    /* 右侧栏（登录卡片等）在手机端取消吸顶，按自然流布局 */
    .content-side {
        position: static;
        top: auto;
    }

    .content-side,
    .auth-card,
    .profile-card {
        padding-top: 14px;
    }

    .profile-sections {
        grid-template-columns: 1fr;
    }

    /* 顶部标签：手机端横向滚动更易用 */
    .feed-tabs {
        gap: 14px;
        padding: 2px 2px 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .feed-tabs::-webkit-scrollbar {
        display: none;
    }

    .feed-tab {
        padding: 10px 0 8px;
        font-size: 15px;
    }
}

/* 触屏设备：去掉 hover 位移，避免“跳动” */
@media (hover: none) and (pointer: coarse) {
    .feed-card:hover {
        box-shadow: none;
        border-color: #f0f0f2;
        transform: none;
    }
}

/* 首页中间栏用户资料样式（参考图片风格） */
.profile-section-main {
    background: #ffffff;
    border-radius: 6px;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    min-height: 60vh;
}

.profile-loading,
.profile-error {
    padding: 40px 20px;
    text-align: center;
    color: #9aa0ad;
    font-size: 14px;
}

.profile-error {
    color: #ff8d8d;
}

.profile-banner {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 0;
    border-radius: 6px 6px 0 0;
    overflow: visible;
}

.profile-banner-back {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    font-size: 13px;
    color: #ffffff;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    transition: background 0.16s ease-out;
}

.profile-banner-back:hover {
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.profile-banner-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f0f5, #f0f5f8);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(200, 220, 240, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(240, 220, 200, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(220, 230, 240, 0.2) 0%, transparent 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.profile-info-area {
    position: relative;
    padding: 0 20px 12px;
    margin-top: 0;
}

/* banner中的头像（用于重叠效果） */
.profile-avatar-large-wrap-banner {
    position: absolute;
    bottom: -60px;
    left: 20px;
    z-index: 10;
    display: inline-block;
}

/* 我的/用户主页大头像：V 标位置与文章详情一致的视觉贴合 */
.profile-avatar-large-wrap-banner .verified-badge {
    right: 6px;
    bottom: 6px;
}

/* info-area中的用户名容器 */
.profile-avatar-name-row {
    margin-bottom: 16px;
    padding-top: 60px;
    padding-left: 0;
}

.profile-name-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-verified-label {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    align-self: flex-start; /* 在纵向 flex 容器中不被拉伸，宽度随内容自适应 */
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 130, 0, 0.08);
    border: 1px solid rgba(255, 130, 0, 0.18);
}

@media (max-width: 768px) {
    .profile-avatar-name-row {
        padding-left: 0;
        padding-top: 60px;
    }
}

.profile-avatar-large-wrap {
    display: inline-block;
    flex-shrink: 0;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    object-fit: cover;
    background: #ff8200;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: block;
}

.profile-name-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-display-name {
    font-size: 24px;
    font-weight: 600;
    color: #111111;
    margin: 0;
    white-space: nowrap;
    line-height: 1.2;
}

.profile-main-info {
    margin-top: 12px;
    padding-left: 0;
}

.profile-badge-crown {
    font-size: 18px;
    line-height: 1;
}

.profile-badge-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 4px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 600;
}

.profile-stats-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.profile-stats-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 0;
}

.profile-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #111111;
}

.profile-stat-label {
    font-size: 12px;
    color: #9aa0ad;
}

.profile-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.profile-action-btn {
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.16s ease-out;
}

.profile-action-btn.primary {
    background: #ff8200;
    border-color: #ff8200;
    color: #ffffff;
}

.profile-action-btn.primary.active {
    background: #fff7ed;
    border-color: #ffb38a;
    color: #c05621;
}

.profile-action-btn.primary:hover {
    background: #ff6a00;
    border-color: #ff6a00;
}

.profile-action-btn.secondary {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #555f73;
}

.profile-action-btn.secondary:hover {
    background: #f5f6fa;
    border-color: #d4d4d8;
}

.profile-action-btn.icon {
    height: 32px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-color: #e5e7eb;
    color: #555f73;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    position: relative;
}
.notify-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    line-height: 1;
}

.profile-stat-clickable {
    cursor: pointer;
}

.notify-popover {
    position: absolute;
    z-index: 4000;
    width: 360px;
    max-width: calc(100vw - 24px);
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.notify-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f2;
}

.notify-popover-title {
    font-size: 14px;
    font-weight: 600;
    color: #111111;
}

.notify-popover-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notify-popover-btn {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #555f73;
    font-size: 12px;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
}

.notify-popover-btn:hover {
    background: #f5f6fa;
}

.notify-list {
    max-height: 420px;
    overflow: auto;
}

.notify-item {
    padding: 10px 12px;
    border-bottom: 1px solid #f5f5f7;
}

.notify-item:last-child {
    border-bottom: none;
}

.notify-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 4px;
}

.notify-item-content {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    word-break: break-word;
}

.notify-item-meta {
    margin-top: 6px;
    font-size: 11px;
    color: #9aa0ad;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.notify-item-unread {
    background: rgba(255, 130, 0, 0.06);
}

.profile-interactions-empty {
    padding: 28px 16px;
    text-align: center;
    color: #9aa0ad;
    font-size: 13px;
}

.profile-interactions-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.profile-interaction-item {
    padding: 12px 12px;
    border-bottom: 1px solid #f5f5f7;
}

.profile-interaction-item:last-child {
    border-bottom: none;
}

.profile-interaction-title a {
    color: #111111;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.profile-interaction-title a:hover {
    color: #ff6a00;
}

.profile-interaction-content {
    margin-top: 6px;
    font-size: 13px;
    color: #555f73;
    line-height: 1.5;
}

.profile-interaction-meta {
    margin-top: 6px;
    font-size: 12px;
    color: #9aa0ad;
}

.profile-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-user-row .feed-author-name {
    font-size: 14px;
}


.profile-action-btn.icon:hover {
    background: #f5f6fa;
}

.profile-detail-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #555f73;
}

.profile-detail-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-official-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #9aa0ad;
    margin-top: 4px;
}

.profile-official-icon {
    font-size: 12px;
}

.profile-content-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid #f0f0f2;
    padding: 0;
    margin-top: 12px;
    margin-bottom: 0;
}

/* 底部导航栏（类似图片中的样式） */
.profile-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-top: 1px solid #f0f0f2;
    background: #ffffff;
    padding: 0;
    margin-top: 0;
    position: sticky;
    bottom: 0;
    z-index: 100;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.profile-nav-tab {
    position: relative;
    padding: 14px 24px;
    font-size: 15px;
    color: #333333;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.16s ease-out;
    flex: 1;
    text-align: center;
    display: block;
}

.profile-nav-tab::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: transparent;
}

.profile-nav-tab.active {
    color: #ff8200;
    font-weight: 600;
}

.profile-nav-tab.active::after {
    background: #ff8200;
}

.profile-nav-tab:hover {
    color: #ff8200;
}

.profile-content-tab {
    position: relative;
    padding: 12px 20px;
    font-size: 14px;
    color: #555f73;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.16s ease-out;
}

.profile-content-tab::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: transparent;
}

.profile-content-tab.active {
    color: #ff8200;
    font-weight: 600;
}

.profile-content-tab.active::after {
    background: #ff8200;
}

.profile-content-tab:hover {
    color: #ff8200;
}

.profile-content-area {
    padding: 12px 20px 80px;
}

.profile-content-header {
    margin-bottom: 16px;
}

.profile-content-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111111;
    margin: 0;
}

.profile-content-body {
    min-height: 200px;
}

.profile-content-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #9aa0ad;
    font-size: 13px;
}

.profile-empty-icon {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.6;
}

.profile-content-empty p {
    margin: 0;
    color: #9aa0ad;
}

/* 用户文章列表项 */
.profile-article-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f2;
}

.profile-article-item:last-child {
    border-bottom: none;
}

.profile-article-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #111111;
    text-decoration: none;
    margin-bottom: 6px;
    transition: color 0.16s ease-out;
}

.profile-article-title:hover {
    color: #ff8200;
}

.profile-article-meta {
    font-size: 12px;
    color: #9aa0ad;
    display: flex;
    align-items: center;
    gap: 4px;
}

