/* 社媒页面样式 */
.social-container {
    display: grid;
    grid-template-columns: 275px 1fr 400px;
    gap: 0;
    width: 100vw;
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: calc(100vh - 68px);
    position: relative;
    background: white;
    /* Unify divider/border color across social page to match right sidebar */
    --border-color: #e1e8ed;
}

/* 左侧导航栏 */
.social-sidebar {
    position: sticky;
    top: 68px;
    height: calc(100vh - 68px);
    padding: 20px;
    background: white;
    overflow-y: auto;
    z-index: 5;
}

.social-nav {
    margin-bottom: 40px;
}

/* Brand header above nav */
.social-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.social-brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.social-brand-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: 0.2px;
}

.social-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-color);
}

.social-nav-item:hover {
    background-color: rgba(15, 20, 25, 0.1);
}

.social-nav-item.active {
    background-color: rgba(0, 0, 102, 0.1);
    font-weight: 700;
}

.social-nav-item.active span {
    font-weight: bold;
    color: #000066;
}

/* Ensure left nav icons use consistent size/color and don't inherit sidebar search input spacing */
.social-nav .social-nav-item .social-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    display: block;
    margin: 0; /* rely on flex gap for spacing */
}

.social-nav .social-nav-item .search-icon {
    margin: 0; /* override generic .search-icon margin-right */
    fill: currentColor; /* inherit text color for active state */
}

/* Align nav text vertically with icon */
.social-nav .social-nav-item span {
    line-height: 22px;
}

.social-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.social-nav-item:first-child .social-icon {
    transform: none;
}

.post-button {
    width: 90%;
    padding: 16px 0;
    background: #000066;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.post-button:hover {
    background: #000066;
}

/* 主内容区 */
.main-feed {
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
    background: white;
    position: relative;
    z-index: 1;
}

.feed-header {
    position: sticky;
    top: 68px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000; /* ensure header stays above badges/images */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 56px;
}

.feed-tabs {
    display: flex;
    height: 100%;
}

.feed-tab {
    background: none;
    border: none;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary-text-color);
    cursor: pointer;
    position: relative;
    height: 100%;
    transition: color 0.2s;
}

.feed-tab:hover {
    color: var(--text-color);
}

.feed-tab.active {
    color: var(--text-color);
    font-weight: 700;
}

.feed-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #000066;
    border-radius: 2px;
}

.settings-icon {
    width: 20px;
    height: 20px;
    fill: var(--secondary-text-color);
    cursor: pointer;
}

/* 发帖编辑器 */
.post-composer {
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
}

.compose-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.user-avatar-small {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.compose-input-container {
    flex: 1;
}

#postContent {
    width: 100%;
    min-height: 56px;
    border: none;
    outline: none;
    font-size: 15px;
    line-height: 20px;
    resize: none;
    font-family: inherit;
    color: var(--text-color);
    background: transparent;
    padding: 8px 0;
}

#postContent::placeholder {
    color: var(--secondary-text-color);
}

.compose-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.compose-tools {
    display: flex;
    align-items: center;
    gap: 16px;
}

.compose-tool {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.compose-tool:hover {
    background: rgba(0, 0, 102, 0.1);
}

.compose-tool svg {
    width: 20px;
    height: 20px;
    fill: #000066;
}

.char-count {
    font-size: 13px;
    color: var(--secondary-text-color);
}

.post-submit-btn {
    background: #000066;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    min-width: 80px;
}

.post-submit-btn:disabled {
    background: #000066;
    opacity: 0.5;
    cursor: not-allowed;
}

.post-submit-btn:not(:disabled):hover {
    background: #000066;
}

/* 帖子样式 */
.post-item {
    border-bottom: 1px solid var(--border-color);
    padding: 16px 16px 0px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.post-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

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

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-user-info {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    margin-top: -20px;
}

.post-user-name {
    font-weight: bold;
    font-size: 15px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-username {
    font-size: 15px;
    color: var(--secondary-text-color);
}

.post-time {
    font-size: 15px;
    color: var(--secondary-text-color);
}

.post-user-info .vip-badge {
    position: static;
    right: auto;
    bottom: auto;
    width: 18px;
    height: 18px;
    margin-left: 0px;
    vertical-align: middle;
    border: none;
    box-shadow: none;
    background: transparent;
    display: inline-block;
}

/* Rectangular companion badge (e.g., for Oliver Tao) */
.post-user-info .vip-badge-rect {
    width: 16px; /* shrink by 2px */
    height: 16px; /* shrink by 2px */
    border-radius: 4px; /* rounded rectangle */
    margin-left: 0px; /* move left by 2px (reduce gap) */
    vertical-align: middle;
    display: inline-block;
    object-fit: cover;
}

.suggestion-name .vip-badge {
    position: static;
    right: auto;
    bottom: auto;
    width: 16px;
    height: 16px;
    margin-left: 4px;
    vertical-align: middle;
    border: none;
    box-shadow: none;
    background: transparent;
    display: inline-block;
}

/* 帖子三点菜单下拉 */
.post-menu-dropdown {
    position: absolute;
    top: 36px;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    min-width: 140px;
    padding: 8px 0;
    display: none;
    z-index: 20;
}

.post-menu-dropdown.show {
    display: block;
}

.post-menu-item {
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
}

.post-menu-item:hover {
    background: rgba(15, 20, 25, 0.06);
}

.post-content {
    font-size: 15px;
    line-height: 20px;
    color: var(--text-color);
    white-space: pre-wrap;
    margin-bottom: 10px;
    margin-left: 60px;
    margin-top: -31px;
}

.post-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 equal columns */
    column-gap: 16px; /* consistent gaps */
    max-width: 425px;
    margin-left: 60px;
    width: 100%;
    align-items: center;
    margin-top: 12px;
    padding: 8px 0 8px 0; /* reduced bottom spacing for tighter layout */
    font-size: 13px;
    color: var(--secondary-text-color);
}

.post-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 13px;
    color: var(--secondary-text-color);
    min-width: 60px;
    justify-content: flex-start;
    white-space: nowrap; /* prevent count wrapping */
    height: 34px; /* consistent control height */
    box-sizing: border-box;
}

.post-action:hover {
    background: transparent;
}

.post-action:hover svg {
    fill: rgb(29, 161, 242);
    transform: scale(1.1);
}

.post-action svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block; /* avoid baseline shift */
    flex: 0 0 18px; /* fixed icon slot */
}

/* keep numbers from shifting icon positions */
.post-action span {
    display: inline-block;
    width: 64px; /* fixed slot fits up to very long counts */
    text-align: left; /* align numbers next to the icon */
    line-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    font-variant-numeric: tabular-nums; /* use equal-width digits */
    font-feature-settings: 'tnum' 1, 'lnum' 1;
    flex: 0 0 64px; /* fixed count slot */
}

.post-action[data-action="view"]:hover {
    background: transparent;
}

.post-action[data-action="view"]:hover svg {
    fill: var(--secondary-text-color);
    transform: none;
}

.post-action[data-action="like"]:hover {
    background: transparent;
}

.post-action[data-action="like"]:hover svg {
    fill: rgb(249, 24, 128);
    transform: scale(1.1);
}

.post-action[data-action="comment"]:hover {
    background: transparent;
}

.post-action[data-action="comment"]:hover svg {
    fill: rgb(29, 161, 242);
    transform: scale(1.1);
}

/* 点赞状态样式 - 类似推特效果 */
.post-action.liked svg {
    fill: rgb(249, 24, 128);
    animation: likeHeartAnimation 0.3s ease-out;
}

.post-action.liked span {
    color: rgb(249, 24, 128);
}

.post-action.liked:hover {
    background: transparent;
}

.post-action.liked:hover svg {
    fill: rgb(249, 24, 128);
    transform: scale(1.1);
}

/* 点赞动画关键帧 */
@keyframes likeHeartAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.25);
    }
    100% {
        transform: scale(1);
    }
}

/* 移除数字跳动动画，只保留爱心图标动画 */

.post-action[data-action="retweet"]:hover {
    background: transparent;
}

.post-action[data-action="retweet"]:hover svg {
    fill: rgb(0, 186, 124);
    transform: scale(1.1);
}

.post-action.retweeted:hover {
    background: transparent;
}

.post-action.retweeted svg {
    fill: rgb(0, 186, 124);
}

.post-action.retweeted:hover svg {
    fill: rgb(0, 186, 124);
    transform: scale(1.1);
}

.post-menu {
    position: absolute; /* pinned to top-right of the post */
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.post-menu:hover {
    background: rgba(29, 161, 242, 0.1);
}

.post-menu svg {
    width: 18px;
    height: 18px;
    fill: var(--secondary-text-color);
}

/* 右侧边栏 */
.right-sidebar {
    position: sticky;
    top: 68px;
    height: calc(100vh - 68px);
    padding: 20px;
    overflow-y: auto;
    background: white;
    z-index: 5;
    margin-right: 15px; /* add separation from viewport edge */
}

.right-sidebar::-webkit-scrollbar {
    display: none;
}

/* 搜索框 */
.search-container {
    margin-bottom: 20px;
}

.search-input-wrapper {
    position: relative;
    background: rgb(239, 243, 244);
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 44px;
    transition: background-color 0.2s;
}

.search-input-wrapper:focus-within {
    background: white;
    border: 1px solid #000066;
}

.search-icon {
    width: 20px;
    height: 20px;
    fill: var(--secondary-text-color);
    margin-right: 16px;
}

#searchInput {
    background: transparent;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--text-color);
    flex: 1;
    text-align: left;
    padding-left: 0;
}

#searchInput::placeholder {
    color: var(--secondary-text-color);
}

/* 卡片通用样式 */
.premium-card,
.suggestions-card,
.trends-card {
    background: white;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.premium-card h3,
.suggestions-card h3,
.trends-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-color);
    margin: 0;
    padding: 20px 16px 16px;
}

.premium-card p {
    color: var(--secondary-text-color);
    font-size: 15px;
    line-height: 20px;
    margin: 0 16px 16px;
}

.subscribe-btn {
    background: #000066;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin: 0 16px 16px;
}

.show-more-btn {
    background: transparent;
    color: #000066;
    padding: 16px;
    width: 100%;
    text-align: left;
    margin: 0;
    font-weight: 400;
    border-radius: 0 0 16px 16px;
}

.subscribe-btn:hover {
    background: #000066;
}

.show-more-btn:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* 推荐用户列表 */
.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.suggestion-item:hover {
    background: rgba(15, 20, 25, 0.1);
}

.suggestion-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.suggestion-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.suggestion-info {
    flex: 1;
}

.suggestion-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 强制推荐区用户名右侧的认证图标为行内布局，覆盖全局 .vip-badge 绝对定位 */
.suggestions-card .suggestion-name img.vip-badge,
.suggestions-list .suggestion-name img.vip-badge {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  width: 17px !important;
  height: 17px !important;
  margin-left: 0px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.suggestion-username {
    font-size: 13px;
    color: var(--secondary-text-color);
}

.follow-btn {
    background: #000066;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.follow-btn:hover {
    background: #000066;
}

.follow-btn.following {
    background: transparent !important;
    color: #000066 !important;
    border: 1px solid #000066 !important;
}

.follow-btn.following:hover {
    background: rgba(0, 0, 102, 0.06) !important;
}

/* 趋势列表 */
.trend-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.trend-item:hover {
    background: rgba(15, 20, 25, 0.1);
}

.trend-category {
    font-size: 13px;
    color: var(--secondary-text-color);
    margin-bottom: 2px;
}

.trend-topic {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2px;
}

.trend-count {
    font-size: 13px;
    color: var(--secondary-text-color);
}

/* 搜索结果样式 */
.search-results-header {
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    background: white;
    position: sticky;
    top: 68px;
    z-index: 15;
}

.search-query-display {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-color);
}

.search-back-btn {
    width: 20px;
    height: 20px;
    fill: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 50%;
    padding: 8px;
    margin: -8px;
}

.search-back-btn:hover {
    background: rgba(15, 20, 25, 0.1);
}

.search-query-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 20px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: white;
    flex: 1;
    height: 32px;
}

.search-query-icon {
    width: 20px;
    height: 20px;
    fill: var(--secondary-text-color);
}

.search-query-text {
    color: var(--text-color);
}

.search-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    background: white;
    padding: 0 20px;
}

.search-tab {
    background: none;
    border: none;
    padding: 8px 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary-text-color);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    border-bottom: 3px solid transparent;
    text-align: center;
    justify-self: center;
}

.search-tab:hover {
    color: var(--text-color);
    background: rgba(15, 20, 25, 0.03);
}

.search-tab.active {
    color: var(--text-color);
    font-weight: 700;
    border-bottom-color: #1d9bf0;
}

.search-query-input {
    color: var(--text-color);
    font-size: 15px;
    font-weight: 500;
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    width: 100%;
}

.search-query-input::placeholder {
    color: var(--secondary-text-color);
}

.search-section-header {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-color);
    padding: 20px 16px 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.search-section-divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

.search-user-results {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

/* 趋势显示样式 */
.trending-section {
    padding: 0;
}

.trending-header {
    font-size: 20px;
    font-weight: 800;
    color: #000066;
    padding: 20px 16px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.trending-list {
    padding: 0;
}

.trending-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.trending-item:hover {
    background-color: rgba(15, 20, 25, 0.03);
}

.trending-location {
    color: var(--secondary-text-color);
    font-size: 13px;
    margin-bottom: 2px;
}

.trending-topic {
    color: var(--text-color);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.trending-count {
    color: var(--secondary-text-color);
    font-size: 13px;
}

/* 显示更多按钮样式 */
.show-more-trends-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin: 0;
    background: transparent;
    border: none;
    color: #000066;
    font-size: 15px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    border-radius: 0 0 8px 8px; /* 上方直角，下方圆角 */
    transition: background-color 0.2s;
}

.show-more-trends-btn:hover {
    background-color: #f7f7f7; /* 浅灰色背景 */
}

/* Navigation icon states */
.home-icon .home-filled {
    display: none;
}

.home-icon .home-outline {
    display: block;
}

.social-nav-item.active .home-icon .home-filled {
    display: block;
}

.social-nav-item.active .home-icon .home-outline {
    display: none;
}

.search-icon .search-normal {
    display: block;
}

.search-icon .search-bold {
    display: none;
}

/* Ensure the bold search icon path actually renders with stroke */
.search-icon .search-bold {
    stroke: currentColor;
    fill: none;
}

/* Do not toggle search icon to bold on active; keep normal path visible */
.social-nav-item .search-icon .search-normal {
    display: block;
}

.social-nav-item .search-icon .search-bold {
    display: none;
}

/* Promoted post indicator */
.post-promoted-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute; /* sit next to the menu */
    top: 8px;
    right: 48px; /* 8px page edge + 34px menu + 6px gap */
    height: 34px;
    margin: 0;
    color: #660033;
    font-size: 13px;
    font-weight: 600;
}

.post-promoted-indicator span {
    /* Solid color text, gradient removed */
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: #660033;
    -webkit-text-fill-color: initial;
}

.promoted-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

/* Comment section styling */
.post-comments-section {
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.comment-composer {
    display: flex;
    padding: 16px;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

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

.comment-input-container {
    flex: 1;
}

.comment-input {
    width: 100%;
    min-height: 40px; /* default much smaller */
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    resize: none; /* we will auto-resize via JS */
    font-family: inherit;
    font-size: 15px;
    background: transparent;
    color: var(--text-color);
}

.comment-input:focus {
    outline: none;
    border-color: #1d9bf0;
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.comment-char-count {
    color: var(--secondary-text-color);
    font-size: 13px;
}

.comment-submit-btn {
    background: #000066; /* align with post submit button */
    color: white;
    border: none;
    padding: 8px 16px; /* align with .post-submit-btn */
    border-radius: 20px;
    font-size: 15px; /* align with .post-submit-btn */
    font-weight: 700; /* align with .post-submit-btn */
    min-width: 80px; /* align with .post-submit-btn */
    cursor: pointer;
    transition: background-color 0.2s;
}

.comment-submit-btn:disabled {
    background: #000066;
    opacity: 0.5; /* align with .post-submit-btn */
    cursor: not-allowed;
}

.comment-submit-btn:not(:disabled):hover {
    background: #000066; /* same hover color as post */
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
}

.comment-item {
    display: flex;
    padding: 12px 16px;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

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

.comment-content {
    flex: 1;
}

.comment-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-user-info .vip-badge {
    position: static;
    right: auto;
    bottom: auto;
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    background: transparent;
    border: none;
    box-shadow: none;
}

.comment-user-name {
    font-weight: 700;
    color: var(--text-color);
}

.comment-username {
    color: var(--secondary-text-color);
}

.comment-time {
    color: var(--secondary-text-color);
    font-size: 13px;
}

.comment-text {
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 8px;
}

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

.comment-action {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--secondary-text-color);
    font-size: 13px;
    transition: all 0.2s;
}

.comment-action:hover {
    background: rgba(29, 155, 240, 0.1);
    color: #1d9bf0;
}

.comment-action.liked {
    color: #f91880;
}

.comment-action svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Delete comment action - destructive style */
.comment-action[data-action="delete"] {
    color: #ef4444; /* red tone */
}
.comment-action[data-action="delete"]:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Hashtag styling in posts */
.post-content {
    color: inherit;
}

.post-content [href*="#"], 
.post-content a[href^="#"], 
.post-hashtag {
    color: #000066 !important;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.post-hashtag:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.search-user-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--border-color);
}

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

.search-user-item:hover {
    background: rgba(15, 20, 25, 0.03);
}

.search-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.search-user-info {
    flex: 1;
    min-width: 0;
}

.search-user-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-user-name .vip-badge {
    position: static !important;
    width: 18px !important;
    height: 18px !important;
    margin-left: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.search-user-username {
    font-size: 15px;
    color: var(--secondary-text-color);
    margin-bottom: 4px;
}

/* User descriptions removed */

.search-follow-btn {
    background: #000066;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    min-width: 80px;
}

.search-follow-btn:hover {
    background: #000066;
    opacity: 0.9;
}

.search-follow-btn.following {
    background: transparent !important;
    color: #000066 !important;
    border: 1px solid #000066 !important;
}

.search-follow-btn.following:hover {
    background: rgba(0, 0, 102, 0.06) !important;
}

.show-more-results {
    text-align: center;
    padding: 16px;
    color: #1d9bf0;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.show-more-results:hover {
    background: rgba(29, 155, 240, 0.03);
}

.no-search-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary-text-color);
    font-size: 15px;
    line-height: 20px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .social-container {
        grid-template-columns: 240px 1fr 290px;
        width: 100%;
        max-width: 100vw;
    }
    
    .social-sidebar {
        width: 240px;
        left: 20px;
    }
    
    .right-sidebar {
        width: 290px;
        right: 20px;
    }
}

@media (max-width: 1000px) {
    .social-container {
        grid-template-columns: 80px 1fr 270px;
    }
    
    .social-sidebar {
        width: 80px;
        left: 20px;
    }
    
    .social-nav-item span {
        display: none;
    }
    
    .post-button {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .right-sidebar {
        width: 270px;
        right: 20px;
    }

    /* Brand header responsive tweaks */
    .social-brand {
        justify-content: center;
        padding: 6px 0 12px;
    }
    .social-brand-name {
        display: none;
    }
}

@media (max-width: 768px) {
    .social-container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .social-sidebar,
    .right-sidebar {
        display: none;
    }
    
    .main-feed {
        border: none;
    }
    
    /* Reduce spacing and slot sizes between interaction components on mobile */
    .post-actions {
        max-width: 340px;
        column-gap: 12px; /* tighter grid gap */
    }
    .post-action {
        min-width: 44px;
        padding: 6px;
        gap: 6px;
    }
    .post-action svg {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
    }
    .post-action span {
        width: 48px; /* smaller reserved width for small screens */
        flex: 0 0 48px;
    }
    
    /* 搜索结果移动端调整 */
    .search-query-display {
        padding: 12px 16px;
        font-size: 18px;
        gap: 12px;
    }
    
    .search-query-pill {
        padding: 4px 16px;
        height: 28px;
    }
    
    .search-tabs {
        padding: 0 12px;
    }
    
    .search-tab {
        padding: 6px 8px;
        font-size: 14px;
    }
    
    .search-user-item {
        padding: 12px 16px;
    }
    
    .search-user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .search-follow-btn {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 70px;
    }
}
