/**
 * 说说页面样式
 */

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 说说页面两栏布局 */
.talks-page-wrapper {
    display: flex;
    gap: 24px;
    padding: 10px 120px 10px 70px;
    align-items: flex-start;
}

.talks-main-content {
    flex: 1;
    flex-shrink: 0.5; /* 主内容收缩优先级较低 */
    min-width: 500px; /* 主内容最小宽度 */
}

.talks-sidebar {
    width: 300px;
    flex-shrink: 3; /* 侧边栏优先收缩 */
    min-width: 200px; /* 侧边栏最小宽度 */
}   

/* 页面标题 */
.talks-header {
    margin-bottom: 30px;
    padding-bottom: 0;
    border-bottom: none;
}

.talks-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 0;
}

/* 发布表单 */
.talk-publish-form {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    overflow: visible;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.publish-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #888;
}

.publish-hint svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.talk-publish-form:focus-within {
    border-color: #e0e0e0;
    box-shadow: none;
}

.publish-form-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    font-weight: 600;
    color: #000;
}

.publish-form-header .form-icon {
    width: 18px;
    height: 18px;
}

.publish-form-content {
    padding: 20px;
    overflow: visible;
}

.publish-form-content textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 17px;
    line-height: 1.6;
    color: #333;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.publish-form-content textarea:focus {
    outline: none;
    border-color: #ccc;
    box-shadow: none;
}

.publish-form-content textarea::placeholder {
    color: #999;
}

/* 图片预览区域 */
.talk-images-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.talk-images-preview.single-image {
    grid-template-columns: 1fr;
    max-width: 500px;
}

/* 2张图片时 */
.talk-images-preview:has(.talk-image-item:nth-child(2)):not(:has(.talk-image-item:nth-child(3))) {
    grid-template-columns: repeat(2, 1fr);
}

/* 3张图片时 */
.talk-images-preview:has(.talk-image-item:nth-child(3)):not(:has(.talk-image-item:nth-child(4))) {
    grid-template-columns: repeat(3, 1fr);
}

.talk-image-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}

.talk-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.talk-image-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.talk-image-remove:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: scale(1.1);
}

.talk-image-remove svg {
    width: 16px;
    height: 16px;
}

.publish-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    overflow: visible;
    position: relative;
}

.publish-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: visible;
    position: relative;
}

/* 图片上传按钮 */
.image-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.image-upload-button:hover {
    background: #fafafa;
    border-color: #ccc;
    color: #000;
}

.image-upload-button svg {
    width: 20px;
    height: 20px;
}

/* 表情按钮容器 */
.emoji-picker-wrapper {
    position: relative;
    display: inline-block;
}

/* 表情按钮 */
.emoji-picker-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.emoji-picker-button:hover,
.emoji-picker-button.active {
    background: #fafafa;
    border-color: #ccc;
    color: #000;
}

.emoji-picker-button svg {
    width: 20px;
    height: 20px;
}

/* 表情选择器面板 */
.emoji-picker-panel {
    position: fixed; /* 改为fixed定位，相对于视口，避免超出屏幕 */
    z-index: 9999;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    width: 450px;
    max-width: calc(100vw - 60px);
    max-height: 400px;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .emoji-picker-panel {
        /* JavaScript会动态控制位置和尺寸，确保不超出屏幕 */
        max-width: calc(100vw - 40px); /* 移动端左右留更小的边距 */
    }
}

.emoji-picker-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 表情分类标签 */
.emoji-picker-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    overflow: hidden;
}

.emoji-tab {
    flex-shrink: 0;
    padding: 6px 8px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.emoji-tab:hover {
    background: #f0f0f0;
    opacity: 1;
}

.emoji-tab.active {
    background: white;
    opacity: 1;
}

/* 表情列表 */
.emoji-picker-list {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    padding: 16px;
    padding-right: 12px;
    max-height: 320px;
    overflow-y: scroll;
    overflow-x: hidden;
    background: white;
}

.emoji-picker-list::-webkit-scrollbar {
    width: 8px;
}

.emoji-picker-list::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.emoji-picker-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.emoji-picker-list::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 26px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    aspect-ratio: 1;
    min-width: 0;
    overflow: hidden;
}

.emoji-item:hover {
    background: #f0f0f0;
}

.emoji-item:active {
    background: #e0e0e0;
}

.publish-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.publish-button svg {
    width: 16px;
    height: 16px;
}

.publish-button:hover:not(:disabled) {
    background: #333;
}

.publish-button:active:not(:disabled) {
    transform: scale(0.98);
}

.publish-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.publish-message {
    display: none;
    margin-top: 12px;
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.5;
}

.publish-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.publish-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==================== 标签自动完成下拉框 ==================== */
.tag-autocomplete {
    display: none;
    position: absolute;
    z-index: 1000;
    background: white;
    border: 1px solid #d1d5da;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 4px;
    max-width: 400px;
    min-width: 280px;
}

.tag-autocomplete-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
}

.tag-autocomplete-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.tag-autocomplete-item:hover {
    background: #f6f8fa;
}

.tag-autocomplete-item.active {
    background: #e1f0ff;
}

.tag-autocomplete-item .tag-name {
    font-size: 15px;
    color: #24292e;
    font-weight: 500;
}

.tag-autocomplete-item .tag-count {
    font-size: 13px;
    color: #586069;
    background: #f1f8ff;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

.tag-autocomplete-item.active .tag-count {
    background: rgba(3, 102, 214, 0.15);
    color: #0366d6;
}

/* 自定义滚动条 */
.tag-autocomplete-list::-webkit-scrollbar {
    width: 6px;
}

.tag-autocomplete-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.tag-autocomplete-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.tag-autocomplete-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.talks-title {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    color: #586069;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.talks-title .title-icon {
    width: 18px;
    height: 18px;
    color: #959da5;
    opacity: 0.6;
}

/* 统计信息 */
.talks-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #959da5;
}

.stat-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.talks-filter-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #586069;
    margin-top: 8px;
}

.talks-filter-info svg {
    width: 16px;
    height: 16px;
}

.talks-filter-info strong {
    color: #4a5568;
    font-weight: 600;
}

.clear-filter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 4px 8px;
    background: #fff5f5;
    color: #d73a49;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.clear-filter svg {
    width: 12px;
    height: 12px;
}

.clear-filter:hover {
    background: #ffeef0;
    color: #cb2431;
}

/* 说说列表 */
.talks-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 说说项 - 微博风格 */
.talk-item {
    display: flex;
    gap: 14px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 30px 0;
    transition: all 0.2s ease;
    scroll-margin-top: 100px; /* 滚动定位时的顶部偏移 */
}

.talk-item:hover {
    background: transparent;
}

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

/* 左侧头像区 */
.talk-avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
}

.talk-avatar .avatar-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: block;
}

/* 右侧主内容区 */
.talk-main {
    flex: 1;
    min-width: 0;
}

/* 用户信息栏 */
.talk-header {
    margin-bottom: 10px;
}

.talk-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.talk-username {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.talk-time {
    font-size: 15px;
    color: #999;
}

/* 说说内容 */
.talk-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 14px;
    word-wrap: break-word;
}

/* 底部操作栏 */
.talk-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 10px;
    border-top: none;
}

.talk-action-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}

.talk-action-item svg {
    width: 16px;
    height: 16px;
}

.talk-action-item:hover {
    color: #666;
}

.talk-action-item.talk-date {
    cursor: default;
    margin-left: auto; /* 推到最右边 */
}

.talk-action-item.talk-date:hover {
    color: #999;
}

/* 点赞按钮 */
.talk-like {
    position: relative;
}

.talk-like.liked {
    color: #ff2d55;
}

.talk-like.liked svg {
    fill: currentColor;
}

/* 点赞动画 */
@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.3);
    }
    30% {
        transform: scale(0.95);
    }
    45% {
        transform: scale(1.1);
    }
    60% {
        transform: scale(1);
    }
}

.talk-like.like-animate {
    animation: likeAnimation 0.6s ease;
}

/* 评论按钮激活状态 */
.talk-comment.active {
    color: #0366d6;
}

/* 评论区域 */
.talk-comments-wrapper {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

/* 简化评论显示 - 每条评论一行 */
.talk-comments-simple {
    margin-top: 12px;
    padding-left: 0;
}

.talk-comment-simple-item {
    display: block;
    font-size: 15px;
    color: #666;
    line-height: 1.9;
    margin-bottom: 6px;
}

.talk-comment-simple-item:not(:last-child)::after {
    content: "";
    margin-right: 0;
}

.comment-author-name {
    font-weight: 500;
    color: #333;
    margin-right: 4px;
}

.comment-text-inline {
    color: #666;
}

/* 回复按钮（图标） */
.comment-reply-link {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    color: #0366d6;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.comment-reply-link svg {
    width: 14px;
    height: 14px;
}

/* 鼠标悬停评论时显示回复按钮 */
.talk-comment-simple-item:hover .comment-reply-link,
.talk-comment-simple-item:focus-within .comment-reply-link {
    opacity: 0.6;
}

.comment-reply-link:hover {
    opacity: 1 !important;
    transform: translateX(-2px);
}

/* 回复评论缩进 - 多层支持 */
.talk-comment-simple-item[data-depth]:not([data-depth="0"]) {
    position: relative;
}

/* 第一层回复 */
.talk-comment-simple-item[data-depth="1"]::before {
    content: "↳";
    position: absolute;
    left: 5px;
    color: #999;
    font-size: 13px;
}

/* 第二层回复 */
.talk-comment-simple-item[data-depth="2"]::before {
    content: "↳";
    position: absolute;
    left: 25px;
    color: #999;
    font-size: 13px;
}

/* 第三层回复 */
.talk-comment-simple-item[data-depth="3"]::before {
    content: "↳";
    position: absolute;
    left: 45px;
    color: #999;
    font-size: 13px;
}

/* 第四层及以上 */
.talk-comment-simple-item[data-depth="4"]::before,
.talk-comment-simple-item[data-depth="5"]::before {
    content: "↳";
    position: absolute;
    left: 65px;
    color: #999;
    font-size: 13px;
}

/* 评论列表（完整版，已隐藏） */
.talk-comments-list {
    margin-bottom: 16px;
}

.talk-comments-list-full {
    display: none;
}

.talk-comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

.talk-comment-item .comment-avatar {
    flex-shrink: 0;
}

.talk-comment-item .comment-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.talk-comment-item .comment-content {
    flex: 1;
    min-width: 0;
}

.comment-author {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.comment-text {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 4px;
}

.comment-text p {
    margin: 0;
}

.comment-time {
    font-size: 13px;
    color: #999;
}

.no-comments {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 15px;
}

/* 评论表单 */
.talk-comment-form {
    margin-top: 12px;
    padding-top: 0;
}

.talk-comment-form .comment-form {
    margin: 0;
}

.talk-comment-form .logged-in-as {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 4px;
}

.talk-comment-form .logged-in-as a {
    color: #0366d6;
    text-decoration: none;
}

.talk-comment-form .logged-in-as a:hover {
    text-decoration: underline;
}

.talk-comment-form .comment-form-author,
.talk-comment-form .comment-form-email {
    margin-bottom: 8px;
}

.talk-comment-form input[type="text"],
.talk-comment-form input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.talk-comment-form input[type="text"]:focus,
.talk-comment-form input[type="email"]:focus {
    outline: none;
    border-color: #0366d6;
}

.talk-comment-form .comment-form-comment {
    margin-bottom: 12px;
}

.talk-comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.talk-comment-form textarea:focus {
    outline: none;
    border-color: #0366d6;
}

.talk-comment-form .form-submit {
    margin: 0;
    text-align: right;
}

.comment-submit-button {
    padding: 10px 24px;
    background: #0366d6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.comment-submit-button:hover {
    background: #0256c7;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(3, 102, 214, 0.3);
}

.comment-submit-button:active {
    transform: translateY(0);
}

/* 兼容旧的样式（已废弃） */
.talk-meta {
    display: none;
}

.talk-time .meta-icon {
    width: 14px;
    height: 14px;
}

.talk-content p {
    margin-bottom: 12px;
}

.talk-content p:last-child {
    margin-bottom: 0;
}

.talk-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 12px 0;
}

/* 说说中的图片网格 */
.talk-content-images {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
}

/* 单张图片 */
.talk-content-images.images-1 {
    grid-template-columns: 1fr;
    max-width: 500px;
}

/* 两张图片 */
.talk-content-images.images-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 三张图片 */
.talk-content-images.images-3 {
    grid-template-columns: repeat(2, 1fr);
}

.talk-content-images.images-3 .talk-content-image:first-child {
    grid-column: 1 / -1;
}

/* 四张图片 - 桌面端一排显示 */
.talk-content-images.images-4 {
    grid-template-columns: repeat(4, 1fr);
}

.talk-content-image {
    position: relative;
    aspect-ratio: 16/9;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.talk-content-image a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.talk-content-image:hover {
    opacity: 0.9;
    transform: scale(1.01);
}

.talk-content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
}

/* 内联标签样式 */
.talk-inline-tag {
    color: #4a5568;
    font-weight: normal;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    display: inline;
    background: #5a7b6314;
    font-size: inherit; /* 继承父元素字体大小 */
    line-height: inherit; /* 继承父元素行高 */
    vertical-align: baseline; /* 基线对齐 */
    white-space: nowrap; /* 防止标签内换行 */
}

/* 默认emoji（如果内容没有emoji则显示）*/
.talk-inline-tag::before {
    content: "🏷️";
    font-size: 1em; /* 使用相对单位 */
    margin-right: 0.35em;
    vertical-align: baseline;
}

/* 如果标签包含emoji，调整间距 */
.talk-inline-tag[data-has-emoji]::before {
    content: "";
    margin-right: 0;
}

.talk-inline-tag:hover {
    background: #5a7b6328;
    color: #2d3748;
    text-decoration: none;
}

.talk-inline-tag:active {
    opacity: 0.8;
}

/* 说说标签（已移除底部标签显示，标签已集成在内容中） */

/* 分页导航 */
.talks-pagination {
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.talks-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.2s ease;
}

.talks-pagination .page-numbers:hover {
    color: #000;
}

.talks-pagination .page-numbers.current {
    color: #000;
    font-weight: 600;
}

.talks-pagination .page-numbers svg {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

/* 空状态 */
.talks-empty {
    text-align: center;
    padding: 80px 20px;
    color: #586069;
}

.talks-empty .empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    opacity: 0.5;
}

.talks-empty p {
    margin: 10px 0;
    font-size: 18px;
}

.talks-empty .empty-hint {
    font-size: 15px;
    color: #959da5;
}

/* ===== 侧边栏样式 ===== */

.talks-sidebar {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.talks-sidebar-section {
    margin-bottom: 32px;
    padding-bottom: 0;
    border-bottom: none;
}

.talks-sidebar-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #24292e;
    margin-bottom: 12px;
}

.sidebar-section-title .sidebar-icon {
    width: 18px;
    height: 18px;
}

/* 标签云 */
.talks-tags {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.talk-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    color: #4a5568;
    border-radius: 6px;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* 标签默认emoji（如果标签名没有emoji，显示默认图标）*/
.talk-tag .tag-name::before {
    content: "🏷️";
    font-size: 15px;
    margin-right: 6px;
}

/* 如果标签名已包含emoji，隐藏默认图标 */
.talk-tag .tag-name[data-has-emoji]::before {
    content: "";
}

.talk-tag:hover {
    background: #f5f5f5;
    color: #2d3748;
}

/* 选中标签样式 - 必须生效 */
.talks-sidebar-section .talks-tags a.active,
.talks-sidebar .talks-tags a.active,
.talks-tags a.talk-tag.active,
a.talk-tag.active,
.talk-tag.active {
    background: #f5f5f5 !important;
    color: #2d3748 !important;
    font-weight: 600 !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.talk-tag .tag-name {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    line-height: 1.4;
}

.talk-tag .tag-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 7px;
    font-size: 13px;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 11px;
    font-weight: 500;
}

.talk-tag:hover .tag-count {
    background: #e5e7eb;
    color: #4b5563;
}

/* 选中标签的数量徽章 */
.talks-tags a.talk-tag.active .tag-count,
a.talk-tag.active .tag-count,
.talk-tag.active .tag-count {
    background: #e5e7eb !important;
    color: #4b5563 !important;
    font-weight: 600 !important;
}

.talk-tag-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 12px;
    margin-top: 12px;
    background: #fff5f5;
    color: #d73a49;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #ffeef0;
}

/* 清除按钮添加emoji */
.talk-tag-clear::before {
    content: "✖️";
    font-size: 13px;
    margin-right: 4px;
}

.talk-tag-clear svg {
    display: none; /* 隐藏SVG图标，使用emoji */
}

.talk-tag-clear:hover {
    background: #ffeef0;
}

.no-tags {
    font-size: 14px;
    color: #959da5;
    margin: 0;
}

/* 那年今日 */
/* 时间线容器 */
.on-this-day-timeline {
    position: relative;
    padding-left: 0;
    padding-bottom: 0;
}

/* 时间线底部终点标记 */
.on-this-day-timeline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 16px;
    height: 16px;
    background: #000;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e0e0e0;
}

/* 时间线项 */
.timeline-item {
    position: relative;
    padding-left: 36px;
    padding-bottom: 24px;
}

.timeline-item:last-child {
    padding-bottom: 24px;
}

/* 时间线垂直线 */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

/* 时间线圆点 */
.timeline-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #000;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e0e0e0;
    z-index: 1;
}

/* 时间线内容 */
.timeline-content {
    padding-left: 0;
}

/* 时间线日期 */
.timeline-date {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.timeline-time {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.timeline-full-date {
    font-size: 12px;
    color: #999;
    letter-spacing: 0.3px;
}

/* 时间线文本 */
.timeline-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* 时间线内的标签样式 */
.timeline-text .talk-inline-tag {
    font-size: 13px;
    padding: 1px 5px;
}

.timeline-text .talk-inline-tag::before {
    font-size: 0.9em;
}

.no-history {
    font-size: 14px;
    color: #959da5;
    margin: 0;
    text-align: center;
    padding: 20px 0;
}

/* ===== 响应式设计 ===== */

/* 大屏幕优化 */
@media (max-width: 1400px) {
    .talks-page-wrapper {
        padding: 10px 80px 10px 50px;
    }
    
    .talks-main-content {
        min-width: 450px;
    }
}

@media (max-width: 1200px) {
    .talks-page-wrapper {
        padding: 10px 50px 10px 30px;
        gap: 20px;
    }
    
    .talks-sidebar {
        width: 260px;
        min-width: 220px;
    }
    
    .talks-main-content {
        min-width: 400px;
    }
}

/* 平板 */
@media (max-width: 992px) {
    /* 表情选择器 - 平板优化 */
    .emoji-picker-panel {
        width: 400px;
    }
    
    .emoji-picker-list {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .talks-page-wrapper {
        padding: 30px 40px 30px 30px;
        gap: 18px;
    }
    
    .talks-sidebar {
        width: 240px;
        min-width: 200px;
    }
    
    .talks-main-content {
        min-width: 350px;
    }
    
    .talks-header {
        margin-bottom: 25px;
        padding-bottom: 0;
    }
    
    .talks-header-top {
        gap: 15px;
    }
    
    .talk-item {
        padding: 26px 0;
    }
}

@media (max-width: 900px) {
    .talks-page-wrapper {
        padding: 25px 30px;
        gap: 16px;
    }
    
    .talks-sidebar {
        width: 220px;
        min-width: 180px;
    }
    
    .talks-main-content {
        min-width: 320px;
    }
}

/* 手机 */
@media (max-width: 768px) {
    /* 表情选择器 - 手机优化 */
    .emoji-picker-panel {
        width: 340px;
    }
    
    .emoji-picker-list {
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
        padding: 12px;
    }
    
    .emoji-item {
        font-size: 22px;
        padding: 6px;
    }
    
    .talks-page-wrapper {
        flex-direction: column;
        padding: 20px;
        padding-top: 80px;
        gap: 30px;
    }
    
    .talks-sidebar {
        width: 100%;
        min-width: 100%;
        flex-shrink: 1;
        position: static;
        max-height: none;
        order: 2; /* 移到底部 */
    }
    
    .talks-main-content {
        order: 1;
        width: 100%;
        min-width: 0;
        flex-shrink: 1;
    }
    
    .talks-header {
        margin-bottom: 20px;
        padding-bottom: 0;
    }
    
    .talks-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 5px;
    }
    
    .talks-title {
        font-size: 18px;
    }
    
    .talks-title .title-icon {
        width: 16px;
        height: 16px;
    }
    
    .talks-stats {
        gap: 12px;
    }
    
    .stat-item {
        font-size: 12px;
    }
    
    .stat-item svg {
        width: 12px;
        height: 12px;
    }
    
    .talk-publish-form {
        margin: 0 0 24px 0;
    }
    
    .publish-form-header {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .publish-form-content {
        padding: 16px;
    }
    
    .publish-form-content textarea {
        font-size: 16px;
        padding: 12px;
    }
    
    .publish-form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    /* 说说列表 - 移动端微博风格 */
    .talk-item {
        padding: 24px 0;
        gap: 12px;
    }
    
    .talk-avatar {
        width: 44px;
        height: 44px;
    }
    
    .talk-avatar .avatar-img {
        width: 44px;
        height: 44px;
    }
    
    .talk-username {
        font-size: 17px;
    }
    
    .talk-time {
        font-size: 14px;
    }
    
    .talk-content {
        font-size: 17px;
        line-height: 1.7;
    }
    
    .talk-actions {
        gap: 20px;
        padding-top: 8px;
    }
    
    .talk-action-item {
        font-size: 14px;
    }
    
    .talk-action-item svg {
        width: 14px;
        height: 14px;
    }
    
    /* 评论区 - 移动端 */
    .talk-comments-simple {
        margin-top: 10px;
    }
    
    .talk-comment-simple-item {
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    /* 移动端缩进调整 */
    .talk-comment-simple-item[data-depth="1"] {
        padding-left: 15px !important;
    }
    
    .talk-comment-simple-item[data-depth="2"] {
        padding-left: 30px !important;
    }
    
    .talk-comment-simple-item[data-depth="3"],
    .talk-comment-simple-item[data-depth="4"],
    .talk-comment-simple-item[data-depth="5"] {
        padding-left: 45px !important;
    }
    
    /* 移动端箭头位置调整 */
    .talk-comment-simple-item[data-depth="1"]::before {
        left: 3px;
    }
    
    .talk-comment-simple-item[data-depth="2"]::before {
        left: 18px;
    }
    
    .talk-comment-simple-item[data-depth="3"]::before,
    .talk-comment-simple-item[data-depth="4"]::before,
    .talk-comment-simple-item[data-depth="5"]::before {
        left: 33px;
    }
    
    /* 移动端回复图标 */
    .comment-reply-link svg {
        width: 12px;
        height: 12px;
    }
    
    .talk-comment-item {
        padding: 8px;
    }
    
    .comment-author {
        font-size: 13px;
    }
    
    .comment-text {
        font-size: 14px;
    }
    
    .comment-time {
        font-size: 12px;
    }
    
    .talk-comment-form .logged-in-as {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .talk-comment-form input[type="text"],
    .talk-comment-form input[type="email"],
    .talk-comment-form textarea {
        font-size: 16px;
        padding: 10px 12px;
    }
    
    .comment-submit-button {
        width: 100%;
        padding: 10px;
    }
    
    .publish-hint {
        font-size: 13px;
    }
    
    .publish-button {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .talks-list {
        gap: 0;
        width: 100%;
    }
    
    .talk-content {
        font-size: 15px;
    }
    
    .talks-pagination {
        margin-bottom: 30px;
    }
    
    .talks-pagination .page-numbers {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .talks-sidebar-section {
        margin-bottom: 24px;
        padding: 0 0 24px 0;
    }
    
    .sidebar-section-title {
        font-size: 17px;
    }
    
    /* 移动端图片上传 */
    .image-upload-button {
        width: 32px;
        height: 32px;
    }
    
    .image-upload-button svg {
        width: 18px;
        height: 18px;
    }
    
    .talk-images-preview {
        gap: 6px;
        margin-top: 10px;
        margin-bottom: 10px;
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .talk-content-images {
        gap: 6px;
        margin-top: 10px;
    }
    
    .talk-content-images.images-1 {
        max-width: 100%;
    }
    
    /* 移动端四张图片改为2x2布局 */
    .talk-content-images.images-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== 夜间模式 ===== */


body.dark-mode .talks-title {
    color: #8b949e;
}

body.dark-mode .talks-title .title-icon {
    color: #6e7681;
    opacity: 0.6;
}

body.dark-mode .stat-item {
    color: #6e7681;
}

/* 发布表单夜间模式 */
body.dark-mode .talk-publish-form {
    background: rgba(255, 255, 255, 0.03);
    border-color: #333;
}

body.dark-mode .talk-publish-form:focus-within {
    border-color: #444;
    box-shadow: none;
}

body.dark-mode .publish-form-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom-color: #333;
    color: #e0e0e0;
}

body.dark-mode .publish-form-content textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: #333;
    color: #e0e0e0;
}

body.dark-mode .publish-form-content textarea:focus {
    border-color: #444;
    box-shadow: none;
}

body.dark-mode .publish-form-content textarea::placeholder {
    color: #666;
}

body.dark-mode .publish-hint {
    color: #aaa;
}

body.dark-mode .publish-button {
    background: #fff;
    color: #000;
}

body.dark-mode .publish-button:hover:not(:disabled) {
    background: #e8e8e8;
}

body.dark-mode .publish-message.success {
    background: rgba(46, 160, 67, 0.15);
    color: #3fb950;
    border-color: rgba(46, 160, 67, 0.3);
}

body.dark-mode .publish-message.error {
    background: rgba(248, 81, 73, 0.15);
    color: #f85149;
    border-color: rgba(248, 81, 73, 0.3);
}

/* 标签自动完成 - 夜间模式 */
body.dark-mode .tag-autocomplete {
    background: #1c1c1c;
    border-color: #444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .tag-autocomplete-item:hover {
    background: #2a2a2a;
}

body.dark-mode .tag-autocomplete-item.active {
    background: rgba(88, 166, 255, 0.15);
}

body.dark-mode .tag-autocomplete-item .tag-name {
    color: #e0e0e0;
}

body.dark-mode .tag-autocomplete-item .tag-count {
    background: rgba(88, 166, 255, 0.1);
    color: #8b949e;
}

body.dark-mode .tag-autocomplete-item.active .tag-count {
    background: rgba(88, 166, 255, 0.2);
    color: #58a6ff;
}

body.dark-mode .tag-autocomplete-list::-webkit-scrollbar-track {
    background: #2a2a2a;
}

body.dark-mode .tag-autocomplete-list::-webkit-scrollbar-thumb {
    background: #555;
}

body.dark-mode .tag-autocomplete-list::-webkit-scrollbar-thumb:hover {
    background: #666;
}

body.dark-mode .talks-filter-info {
    color: #aaa;
}

body.dark-mode .talks-filter-info strong {
    color: #9ca3af;
    font-weight: 600;
}

body.dark-mode .clear-filter {
    background: rgba(215, 58, 73, 0.15);
    color: #f85149;
}

body.dark-mode .clear-filter:hover {
    background: rgba(215, 58, 73, 0.25);
    color: #ff7b72;
}

body.dark-mode .talk-item {
    background: transparent;
    border-bottom-color: #222;
}

body.dark-mode .talk-item:hover {
    background: transparent;
}

body.dark-mode .talk-item:last-child {
    border-bottom: none;
}

body.dark-mode .talk-username {
    color: #e0e0e0;
}

body.dark-mode .talk-time {
    color: #888;
}

body.dark-mode .talk-actions {
    border-top: none;
}

body.dark-mode .talk-action-item {
    color: #888;
}

body.dark-mode .talk-action-item:hover {
    color: #aaa;
}

body.dark-mode .talk-like.liked {
    color: #ff2d55;
}

body.dark-mode .talk-comment.active {
    color: #58a6ff;
}

body.dark-mode .talk-comments-wrapper {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .talk-comments-simple {
    color: #ccc;
}

body.dark-mode .comment-author-name {
    color: #e0e0e0;
}

body.dark-mode .comment-text-inline {
    color: #aaa;
}

body.dark-mode .comment-reply-link {
    color: #58a6ff;
}

body.dark-mode .talk-comment-simple-item[data-depth]::before {
    color: #666;
}

body.dark-mode .talk-comment-item {
    background: #222;
}

body.dark-mode .comment-author {
    color: #e0e0e0;
}

body.dark-mode .comment-text {
    color: #aaa;
}

body.dark-mode .comment-time {
    color: #888;
}

body.dark-mode .no-comments {
    color: #888;
}

body.dark-mode .talk-comment-form .logged-in-as {
    background: #222;
    color: #aaa;
}

body.dark-mode .talk-comment-form .logged-in-as a {
    color: #58a6ff;
}

body.dark-mode .talk-comment-form textarea,
body.dark-mode .talk-comment-form input[type="text"],
body.dark-mode .talk-comment-form input[type="email"] {
    background: #1a1a1a;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .talk-comment-form textarea:focus,
body.dark-mode .talk-comment-form input[type="text"]:focus,
body.dark-mode .talk-comment-form input[type="email"]:focus {
    border-color: #58a6ff;
}

body.dark-mode .comment-submit-button {
    background: #58a6ff;
}

body.dark-mode .comment-submit-button:hover {
    background: #79c0ff;
}

body.dark-mode .talk-time {
    color: #aaa;
}

body.dark-mode .talk-content {
    color: #e0e0e0;
}

body.dark-mode .talk-inline-tag {
    color: #9ca3af;
    background: rgba(90, 123, 99, 0.12);
}

body.dark-mode .talk-inline-tag:hover {
    background: rgba(90, 123, 99, 0.25);
    color: #cbd5e0;
}

body.dark-mode .talk-inline-tag:active {
    opacity: 0.8;
}

body.dark-mode .talk-inline-tag::before {
    filter: brightness(1.2);
}

body.dark-mode .talks-pagination .page-numbers {
    color: #e0e0e0;
}

body.dark-mode .talks-pagination .page-numbers:hover {
    color: #fff;
}

body.dark-mode .talks-pagination .page-numbers.current {
    color: #fff;
}

body.dark-mode .talks-empty {
    color: #666;
}

body.dark-mode .talks-empty .empty-hint {
    color: #555;
}

/* 侧边栏夜间模式 */
body.dark-mode .talks-sidebar {
    background: transparent;
}

body.dark-mode .talks-sidebar-section {
    border-bottom-color: transparent;
}

body.dark-mode .sidebar-section-title {
    color: #e0e0e0;
}

body.dark-mode .talk-tag {
    background: transparent;
    color: #9ca3af;
    border-color: transparent;
}

body.dark-mode .talk-tag:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e0;
}

body.dark-mode a.talk-tag.active,
body.dark-mode .talk-tag.active {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600 !important;
    border-color: transparent !important;
}

body.dark-mode .talk-tag .tag-count {
    background: rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-weight: 500;
}

body.dark-mode .talk-tag:hover .tag-count {
    background: rgba(255, 255, 255, 0.12);
    color: #cbd5e0;
}

body.dark-mode a.talk-tag.active .tag-count,
body.dark-mode .talk-tag.active .tag-count {
    background: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 600 !important;
}

body.dark-mode .talk-tag-clear {
    background: rgba(215, 58, 73, 0.15);
    color: #f85149;
    border-color: rgba(215, 58, 73, 0.2);
}

body.dark-mode .talk-tag-clear:hover {
    background: rgba(215, 58, 73, 0.25);
    border-color: rgba(215, 58, 73, 0.3);
}

body.dark-mode .no-tags {
    color: #666;
}

/* 暗黑模式 - 时间线样式 */
body.dark-mode .on-this-day-timeline::after {
    background: #fff;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px #333;
}

body.dark-mode .timeline-item::before {
    background: #333;
}

body.dark-mode .timeline-dot {
    background: #fff;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px #333;
}

body.dark-mode .timeline-time {
    color: #e0e0e0;
}

body.dark-mode .timeline-full-date {
    color: #666;
}

body.dark-mode .timeline-text {
    color: #aaa;
}

body.dark-mode .no-history {
    color: #666;
}

/* 夜间模式 - 图片上传 */
body.dark-mode .image-upload-button {
    background: rgba(255, 255, 255, 0.05);
    border-color: #444;
    color: #aaa;
}

body.dark-mode .image-upload-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #555;
    color: #fff;
}

/* 表情按钮 - 夜间模式 */
body.dark-mode .emoji-picker-button {
    background: rgba(255, 255, 255, 0.05);
    border-color: #444;
    color: #aaa;
}

body.dark-mode .emoji-picker-button:hover,
body.dark-mode .emoji-picker-button.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: #555;
    color: #fff;
}

/* 表情选择器面板 - 夜间模式 */
body.dark-mode .emoji-picker-panel {
    background: #2a2a2a;
    border-color: #444;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode .emoji-picker-tabs {
    background: #222;
    border-bottom-color: #444;
}

body.dark-mode .emoji-tab:hover {
    background: #333;
}

body.dark-mode .emoji-tab.active {
    background: #2a2a2a;
}

body.dark-mode .emoji-picker-list {
    background: #2a2a2a;
}

body.dark-mode .emoji-picker-list::-webkit-scrollbar-track {
    background: #222;
}

body.dark-mode .emoji-picker-list::-webkit-scrollbar-thumb {
    background: #444;
}

body.dark-mode .emoji-picker-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

body.dark-mode .emoji-item:hover {
    background: #333;
}

body.dark-mode .talk-image-item {
    background: #2a2a2a;
}

body.dark-mode .talk-content-image {
    background: #2a2a2a;
}

