.container {
    display: flex;
    gap: 20px;
    padding: 20px;
    height: 100vh;
}

.editor-panel {
    flex: 1;
    background: #fff;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    max-width: 500px;
    margin-right: 20px;
    overflow-y: auto;
}

.preview-panel {
    width: 375px;
    background: #000;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.douyin-comments {
    color: #fff;
    font-family: "HarmonyOS Sans SC", "PingFang SC", "苹方-简", system-ui, -apple-system, sans-serif;
    font-weight: 400;
    aspect-ratio: 9/16;
    width: 375px;
    height: auto;
    position: relative;
    background: #000;
    margin: 0 auto;
    min-height: 667px;
}

.preview-wrapper {
    width: 375px;
    height: 667px;
    position: relative;
    overflow: hidden;
}

#export-image {
    margin-top: 15px;
    padding: 10px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
    width: 100%;
}

#export-image:hover {
    background: #3367d6;
}

.comment-item {
    padding: 12px 16px;
    position: relative;
}

.comment-user {
    width: 100%;
    display: flex;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    width: 100%;
    flex: 1;
}

.blue-text {
    color: #2F80ED;
}

.like-count {
    color: #7D7D7B;
    font-size: 14px;
}

.comment-input-area {
    margin: 24px 0;
    position: relative;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #dfe1e5;
    box-sizing: border-box;
}

.comment-content-input {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #dfe1e5;
    border-radius: 8px;
    resize: vertical;
    background: #fff;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.3s;
    box-sizing: border-box;
}

.comment-content-input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
}

.comment-tools {
    margin-top: 15px;
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
}

.emoji-picker-btn,
.blue-text-btn {
    padding: 5px 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
}

.emoji-picker-container {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 400px;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 8px;
}

.emoji-item {
    cursor: pointer;
    padding: 5px;
    text-align: center;
    font-size: 20px;
    transition: background-color 0.2s;
    border-radius: 4px;
}

.emoji-item:hover {
    background-color: #f5f5f5;
}

.emoji-picker-btn {
    font-size: 20px;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    position: relative;
}

.emoji-picker-btn:hover {
    background-color: #f5f5f5;
}

/* 用户信息区域样式 */
.comment-user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
}

.avatar-upload {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    margin-bottom: 32px;
}

#avatar-preview,
#reply-avatar-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #e8e8e8;
    background: #f5f5f5;
    padding: 2px;
    transition: border-color 0.3s;
}

#avatar-preview:hover,
#reply-avatar-preview:hover {
    border-color: #4285f4;
}

#avatar-input,
#reply-avatar-input {
    display: none;
}

.avatar-upload label,
.update-avatar-btn {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #4285f4;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.avatar-upload label:hover,
.update-avatar-btn:hover {
    background: #3367d6;
}

#nickname-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dfe1e5;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    text-align: left;
    box-sizing: border-box;
}

#nickname-input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
}

/* 统一输入框的placeholder样式 */
#nickname-input::placeholder,
.comment-content-input::placeholder {
    color: #999;
    font-size: 14px;
}

/* 统一输入框的focus状态 */
#nickname-input:focus,
.comment-content-input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
}

/* 主题切换样式 */
.theme-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

#theme-toggle {
    appearance: none;
    width: 40px;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

#theme-toggle::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    top: 1px;
    left: 1px;
    transition: 0.3s;
}

#theme-toggle:checked {
    background: #4285f4;
}

#theme-toggle:checked::before {
    transform: translateX(20px);
}

/* 深色/浅色主题样式 */
.douyin-comments.light-theme {
    background: #fff;
    color: #000;
}

.douyin-comments.light-theme .like-count {
    color: #666;
}

/* 搜索头部样式 */
.search-header {
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    position: relative;
}

.search-title {
    color: #888;
    font-size: 14px;
    white-space: nowrap;
}

.search-keyword {
    color: #FFF57C;
    font-size: 14px;
    position: relative;
    padding-right: 10px;
    flex: 1;
    display: inline;
    white-space: nowrap;
    max-width: fit-content;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.search-keyword::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: url('../svg/fdj.svg') no-repeat center;
    background-size: contain;
    display: inline-block;
    margin-top: -1px;
    filter: invert(92%) sepia(37%) saturate(1095%) hue-rotate(359deg) brightness(103%) contrast(103%);
    @media print {
        display: none;
    }
}

.douyin-comments.light-theme .search-keyword::after {
    filter: none;
}

.header-actions {
    display: flex;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.header-actions button {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
}

/* 评论样式优化 */
.comment-item {
    padding: 12px 16px;
}

.comment-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.username {
    font-size: 14px;
    font-weight: 500;
    color: #717171;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.comment-content {
    font-size: 14px;
    line-height: 1.5;
    margin: 4px 0 8px 0;
    width: 100%;
    color: #D8D7D9;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #888;
    font-size: 12px;
    position: relative;
    line-height: 1;
    margin-top: 8px;
    height: 16px;
}

.separator {
    color: #7D7D7B;
    margin: 0 1px;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

/* 浅色主题下的分隔符颜色 */
.douyin-comments.light-theme .separator {
    color: #7D7D7B;
}

.timestamp,
.location,
.reply-btn {
    color: #7D7D7B;
    font-size: 12px;
}

.reply-btn {
    color: inherit;
    font-size: inherit;
}

/* 浅色主题下的时间、地区、回复按钮颜色 */
.douyin-comments.light-theme .timestamp,
.douyin-comments.light-theme .location,
.douyin-comments.light-theme .reply-btn {
    color: #7D7D7B;
}

/* 展开按钮样式 */
.expand-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    cursor: pointer;
    margin-top: 4px;
}

/* 二级评论样式 */
.reply-list {
    margin-left: 0;
    margin-top: 8px;
    padding-left: 12px;
}

.reply-item {
    margin-top: 8px;
}

/* 底部评论框样式 */
.bottom-comment-box {
    position: sticky;
    bottom: 0;
    background: #000;
    padding: 12px 0;
    width: 100%;
    overflow: hidden;
}

/* 浅色主题下的底部评论框背景 */
.douyin-comments.light-theme .bottom-comment-box {
    background: #fff;
}

.comment-input-wrapper {
    display: flex;
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
}

.input-area {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* 浅色主题下的输入框背景 */
.douyin-comments.light-theme .input-area {
    background: rgba(0,0,0,0.1);
}

.bottom-input {
    background: none;
    border: none;
    color: #fff;
    flex: 1;
    width: auto;
    font-size: 14px;
    line-height: 20px;
    padding: 0;
    min-height: 20px;
    outline: none;
}

.bottom-input:empty:before {
    content: attr(placeholder);
    color: #888;
    pointer-events: none;
}

/* 浅色主题下空输入框的占位符颜色 */
.douyin-comments.light-theme .bottom-input:empty:before {
    color: #7D7D7B;
}

/* 浅色主题下的输入框文字颜色 */
.douyin-comments.light-theme .bottom-input {
    color: #000;
}

/* 浅色主题下的输入框占位符颜色 */
.douyin-comments.light-theme .bottom-input::placeholder {
    color: #7D7D7B;
}

.input-tools {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: 8px;
}

.tool-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 20px;
    height: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-btn:nth-child(1) {
    opacity: 0.8;
}

.tool-btn:nth-child(1) svg {
    width: 18px;
    height: 18px;
}

.tool-btn:nth-child(1) svg path {
    stroke: #999999;
}

.tool-btn:nth-child(2) {
    opacity: 0.8;
}

.tool-btn:nth-child(2) svg {
    width: 18px;
    height: 18px;
}

.tool-btn:nth-child(2) svg path {
    stroke: #999999;
}

.tool-btn:nth-child(3) {
    opacity: 0.8;
}

.tool-btn:nth-child(3) svg {
    width: 18px;
    height: 18px;
}

.tool-btn:nth-child(3) svg path {
    stroke: #999999;
}

.tool-btn:hover {
    opacity: 0.8;
}

/* 确保所有文本元素都使用圆体 */
.search-title,
.search-keyword,
.username,
.comment-content,
.comment-meta,
.bottom-input,
.tool-btn,
input,
textarea,
button,
.comments-count,
.timestamp,
.location,
.reply-btn,
.like-count,
.expand-text {
    font-family: "HarmonyOS Sans SC", "PingFang SC", "苹方-简", system-ui, -apple-system, sans-serif;
    font-weight: 400;
}

.like-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
    color: #7D7D7B;
    height: 100%;
}

.like-btn {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: 12px;
}

.like-btn svg {
    width: 13px;
    height: 13px;
    display: flex;
    align-items: center;
}

.like-btn svg path {
    stroke: #717171;
}

.like-btn.liked svg path {
    fill: #ff2c55;
    stroke: #ff2c55;
}

.dislike-btn {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.dislike-btn svg {
    width: 13px;
    height: 13px;
}

.dislike-btn svg path,
.dislike-btn svg polyline {
    stroke: #717171;
}

/* 修改二级评论的头像大小 */
.reply-list .user-avatar {
    width: 40px;
    height: 40px;
}

/* 确保二级评论也使用相同的颜色 */
.reply-list .username {
    font-size: 15px;
    color: #717171;
}

.reply-list .comment-content {
    font-size: 14px;
    color: #FFFFFF;
    margin: 4px 0 8px 0;
}

/* 评论总数样式 */
.comments-count {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    padding: 12px 16px;
    text-align: center;
    font-weight: 500;
}

/* 浅色主题下的评论总数颜色 */
.douyin-comments.light-theme .comments-count {
    color: #1A1920;
    font-weight: 500;
}

.comments-list {
    height: auto;
    max-height: calc(100% - 120px);
    overflow-y: auto;
}

/* 只为评论列表添加自定义滚动条 */
.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: transparent;
}

.comments-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* 浅色主题下的评论内容颜色 */
.douyin-comments.light-theme .comment-content {
    color: #272729;
}

/* 确保点赞区域在两种主题下颜色一致 */
.douyin-comments.light-theme .like-icon,
.douyin-comments.light-theme .dislike-icon,
.douyin-comments.light-theme .like-count {
    color: #7D7D7B;
}

/* 浅色主题下的二级评论颜色 */
.douyin-comments.light-theme .reply-list .comment-content {
    color: #FFFFFF;
}

/* @提及的样式 */
.at-mention {
    color: #2F80ED;
}

/* 浅色主题下@提及的样式 */
.douyin-comments.light-theme .at-mention {
    color: #2F80ED;
}

/* 浅色主题下的搜索关键词颜色 */
.douyin-comments.light-theme .search-keyword {
    color: #184663;
}

/* 确保回复框的用户名也保持一致 */
.reply-input-wrapper .username {
    font-size: 15px;
}

/* 左侧编辑区域样式优化 */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dfe1e5;
    border-radius: 8px;
    font-size: 14px;
    margin: 0;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
}

#add-comment {
    width: 100%;
    padding: 12px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

#add-comment:hover {
    background: #3367d6;
}

/* 表情选择器样式优化 */
.emoji-picker-container {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 400px;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 8px;
}

/* 主题切换样式优化 */
.theme-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.theme-label {
    min-width: 80px;
}

/* 表情选择器的滚动条样式 */
.emoji-picker-container::-webkit-scrollbar {
    width: 6px;
}

.emoji-picker-container::-webkit-scrollbar-track {
    background: transparent;
}

.emoji-picker-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* 确保评论内容中的span标签继承字体样式 */
.comment-content span {
    font-family: inherit;
    font-size: inherit;
}

/* 评论内容样式 */
.comment-content {
    margin: 4px 0;
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
    color: #fff;
}

/* 浅色主题下的评论内容颜色 */
.douyin-comments.light-theme .comment-content {
    color: #272729;
}

/* 回复区域样式优化 */
.reply-options {
    margin-top: 16px;
    padding-top: 16px;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 20px;
}

.reply-settings {
    border-radius: 8px;
    margin-top: 12px;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    transition: all 0.3s ease;
}

/* 回复按钮样式优化 */
.submit-reply-btn {
    background: linear-gradient(45deg, #2F80ED, #56CCF2);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    box-shadow: 0 2px 8px rgba(47, 128, 237, 0.2);
}

.submit-reply-btn:hover {
    background: linear-gradient(45deg, #1c64c9, #4BA8F2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(47, 128, 237, 0.3);
}

.submit-reply-btn .btn-icon {
    font-size: 18px;
}

.submit-reply-btn .btn-text {
    font-weight: 500;
}

/* 回复输入框样式优化 */
#reply-content-input {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px;
    min-height: 80px;
    width: 100%;
    margin: 16px 0;
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s;
}

#reply-content-input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
}

#reply-to-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s;
    background: white;
}

/* 回复展开/收起按钮样式优化 */
.reply-toggle {
    color: #2F80ED;
    font-size: 14px;
    cursor: pointer;
    padding: 12px 0;
    user-select: none;
    text-align: left;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reply-toggle .toggle-icon {
    color: #2F80ED;
    margin-left: auto;
}

/* 深色主题下的样式 */
.douyin-comments:not(.light-theme) .reply-toggle {
    color: rgba(255, 255, 255, 0.9);
}

.douyin-comments:not(.light-theme) .reply-toggle .toggle-icon {
    color: rgba(255, 255, 255, 0.9);
}

.reply-input-wrapper {
    margin-top: 8px;
    margin-bottom: 8px;
    width: 100%;
    position: relative;
}

.reply-input-wrapper .input-area {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.douyin-comments.light-theme .reply-input-wrapper .input-area {
    background: rgba(0, 0, 0, 0.1);
}

.reply-input {
    background: none;
    border: none;
    color: #fff;
    width: 100%;
    font-size: 14px;
    outline: none;
    padding: 4px 8px;
    min-height: 20px;
}

.douyin-comments.light-theme .reply-input {
    color: #000;
}

.reply-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.douyin-comments.light-theme .reply-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

/* 回复区域用户名布局 */
.reply-names {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    line-height: 18px;
}

.reply-names .replier-name,
.reply-names .reply-to {
    font-size: 13px;
    font-weight: 400;
    color: #717171;
    line-height: normal;
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding-top: 1px;
}

.reply-target {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    flex-shrink: 0;
    height: 18px;
}

.reply-target .reply-arrow {
    color: #717171;
    margin: 0 2px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: normal;
    height: 100%;
    position: relative;
    top: -1px;
}

.reply-target .reply-to {
    color: #717171;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

/* 浅色主题下的用户名和箭头颜色 */
.douyin-comments.light-theme .reply-names .replier-name,
.douyin-comments.light-theme .reply-names .reply-to,
.douyin-comments.light-theme .reply-names .reply-arrow {
    color: #717171;
}

/* 调整回复项布局 */
.reply-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 0 12px;
    overflow: hidden;
}

.reply-item .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.reply-item .user-info {
    flex: 1;
    min-width: 0;
    padding-top: 0;
    overflow: hidden;
}

.reply-item .comment-content {
    font-size: 14px;
    color: #FFFFFF;
    margin: 4px 0 8px 0;
}

/* 浅色主题下的图标颜色 */
.douyin-comments.light-theme .tool-btn {
    filter: brightness(0.8);
}

/* 回复区域左侧样式优化 */
.reply-settings {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
}

.douyin-comments.light-theme .reply-settings {
    background: #fff;
}

.reply-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.avatar-upload img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

/* 更换头像按钮样式 */
.update-avatar-btn {
    background: none;
    border: none;
    color: #2F80ED;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.3s;
    white-space: nowrap;
}

.update-avatar-btn:hover {
    background: rgba(47, 128, 237, 0.1);
}

.reply-to-section {
    width: 100%;
    position: relative;
    margin: 15px 0;
}

/* 回复者昵称输入框样式 */
#reply-nickname-input {
    background: #fff !important;
    border: none;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: #000;
    width: 180px;
    text-align: left;
    outline: none;
    margin: 15px 0;
}

#reply-nickname-input:focus {
    border-color: #2F80ED;
}

#reply-nickname-input::placeholder {
    color: #999;
}

/* 要回复的用户昵称输入框样式 */
#reply-to-input {
    background: #fff !important;
    border: none;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: #000;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    margin: 15px 0;
}

#reply-to-input:focus {
    border-color: #2F80ED;
}

#reply-to-input::placeholder {
    color: #999;
}

.submit-reply-btn {
    align-self: flex-end;
    margin-top: 8px;
}

/* 用户昵称建议列表样式 */
.reply-user-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-radius: 8px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.douyin-comments.light-theme .reply-user-suggestions {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: #fff;
    font-size: 14px;
}

.douyin-comments.light-theme .suggestion-item {
    color: #000;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.douyin-comments.light-theme .suggestion-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.reply-to-section {
    width: 100%;
    position: relative;
}

/* 回复区域头像样式 */
.reply-avatar-section .avatar-upload {
    margin-bottom: 32px;
}

/* 作者标签样式 */
.author-tag {
    display: inline-flex;
    align-items: center;
    background: #FD2B54;
    color: #fff;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 2px;
    margin-left: 4px;
    font-weight: 400;
    transform: scale(0.9);
    transform-origin: left center;
    height: 14px;
    line-height: 14px;
}

/* 显示作者开关样式 */
.author-toggle-area {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}

.author-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #666;
}

.author-checkbox {
    margin: 0;
    cursor: pointer;
}

.reply-arrow {
    color: #717171;
    margin: 0 4px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
}

.reply-arrow svg {
    display: block;
    margin: auto;
    width: 10px;
    height: 10px;
    transform: translateY(0);
}

/* 用户名样式 */
.username {
    font-size: 14px;
    font-weight: 500;
    color: #717171;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* 回复区域用户名样式 */
.reply-names .replier-name,
.reply-names .reply-to {
    font-size: 13px;
    font-weight: 400;
    color: #717171;
    line-height: normal;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.avatar-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    min-width: 200px;
}

.update-avatar-btn,
.random-avatar-btn {
    background: none;
    border: none;
    color: #2F80ED;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.3s;
    white-space: nowrap;
    text-align: center;
    display: inline-block;
    width: auto;
}

.update-avatar-btn:hover,
.random-avatar-btn:hover {
    background: rgba(47, 128, 237, 0.1);
}

.reply-to-section {
    width: 100%;
    position: relative;
    margin: 15px 0;
} 