/* 核心风格与变量 */
:root {
    --primary-color: #3db4f2;
    --primary-light: #64c8ff;
    --primary-dark: #0096db;
    --accent-color: #ff6b81;
    --background-color: rgba(16, 24, 35, 0.95);
    --background-light: rgba(26, 38, 53, 0.85);
    --background-card: rgba(30, 44, 58, 0.9);
    --text-primary: #ffffff;
    --text-secondary: #dae1e7;
    --text-tertiary: #a5b5c5;
    --border-color: rgba(61, 180, 242, 0.15);
    --border-hover: rgba(61, 180, 242, 0.3);
    --success-color: #4caf50;
    --warning-color: #ffab00;
    --error-color: #f44336;
    --box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    --button-shadow: 0 2px 8px rgba(61, 180, 242, 0.2);
    --transition-default: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根元素样式 */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    background-image: linear-gradient(to bottom, #0f1923, #131f2d);
    background-attachment: fixed;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 页面容器 */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-default);
    position: relative;
}

a:hover {
    color: var(--primary-light);
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-light);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* 页眉/导航栏 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    position: sticky;
    top: 0;
    background-color: rgba(16, 24, 35, 0.95);
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo h1 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-default);
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 通用图标样式 */
.svg-icon {
    width: 1.25em;
    height: 1.25em;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 按钮基础样式 */
button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
    transition: var(--transition-default);
}

/* 轮播区域样式 - 照片墙优化 */
.swiper-container {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--card-shadow);
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
}

.swiper-main {
    width: 100%;
}

.swiper-slide {
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70vh;
    overflow: hidden;
}

.swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition-slow);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.swiper-slide:hover img {
    transform: scale(1.02);
}

.image-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    z-index: 10;
    font-weight: 500;
    letter-spacing: 0.02em;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.swiper-thumbs-container {
    margin-top: 1rem;
    padding: 0.5rem 0;
}

.swiper-thumbs .swiper-slide {
    width: 80px;
    height: 60px;
    margin-right: 10px;
    opacity: 0.6;
    transition: all 0.3s ease;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    height: auto;
}

.swiper-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(61, 180, 242, 0.5);
}

.swiper-pagination-bullet {
    background-color: var(--text-tertiary);
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
    opacity: 1;
}

/* 帖子内容区域 */
.post-container {
    background-color: var(--background-card);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    position: relative;
    backdrop-filter: blur(10px);
}

.post-header {
    margin-bottom: 1.5rem;
}

.post-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    line-height: 1.3;
}

.sticky-tag, .featured-tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sticky-tag {
    background-color: var(--warning-color);
    color: #000000;
}

.featured-tag {
    background-color: var(--primary-color);
    color: #ffffff;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--primary-color);
    background-color: var(--background-light);
    cursor: pointer;
    transition: var(--transition-default);
}

.author-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(61, 180, 242, 0.3);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.author-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-default);
}

.author-name:hover {
    color: var(--primary-color);
}

.author-location {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    gap: 0.25rem;
}

.post-time {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.follow-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-default);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: var(--button-shadow);
}

.follow-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(61, 180, 242, 0.3);
}

.post-content {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    word-break: break-word;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background-color: var(--background-light);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition-default);
    border: 1px solid transparent;
}

.tag:hover {
    background-color: rgba(61, 180, 242, 0.1);
    color: var(--primary-color);
    border-color: var(--border-hover);
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.post-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.stat-item i, .stat-item svg {
    font-size: 1.1rem;
    color: var(--text-tertiary);
}

/* 评论区样式 */
.comments-container {
    background-color: var(--background-card);
    border-radius: 12px;
    padding: 1rem; /* 减小内边距 */
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    position: relative;
}

.comments-header {
    margin-bottom: 1rem; /* 减小底部边距 */
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comments-header h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.02em;
}

.comment-input-container {
    display: flex;
    gap: 0.5rem; /* 减小间距 */
    margin-bottom: 1.25rem; /* 减小底部边距 */
}

.comment-avatar {
    width: 32px; /* 减小头像大小 */
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    transition: var(--transition-default);
    cursor: pointer;
}

.comment-avatar:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(61, 180, 242, 0.3);
}

.comment-input-wrapper {
    flex: 1;
    background-color: var(--background-light);
    border-radius: 8px; /* 减小圆角 */
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-default);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comment-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(61, 180, 242, 0.2);
}

.comment-input {
    min-height: 60px; /* 减小高度 */
    padding: 0.75rem;
    color: var(--text-primary);
    outline: none;
    background-color: transparent;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    font-family: inherit;
    font-size: 0.875rem; /* 减小字体大小 */
}

.comment-input[contenteditable="true"]:empty:before {
    content: attr(placeholder);
    color: var(--text-tertiary);
    opacity: 0.7;
}

.comment-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0.625rem; /* 减小内边距 */
    border-top: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.1);
}

.comment-tool-buttons {
    display: flex;
    gap: 0.5rem;
}

.tool-btn {
    background-color: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    width: 28px; /* 减小按钮大小 */
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-default);
}

.tool-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
}

.submit-comment-btn {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0.375rem 1rem; /* 减小内边距 */
    border-radius: 16px; /* 减小圆角 */
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-default);
    font-size: 0.8125rem; /* 减小字体大小 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.submit-comment-btn:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.submit-comment-btn:disabled {
    background-color: var(--border-color);
    color: var(--text-tertiary);
    cursor: not-allowed;
    box-shadow: none;
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; /* 减小间距 */
    padding: 0.5rem; /* 减小内边距 */
    border-top: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.1);
}

.image-preview-wrapper {
    position: relative;
    width: 70px; /* 减小预览图大小 */
    height: 70px;
    border-radius: 6px; /* 减小圆角 */
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-default);
}

.image-preview-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: rgba(0, 0, 0, 0.6);
    width: 18px; /* 减小按钮大小 */
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.75rem;
    border-radius: 50%;
    transition: var(--transition-default);
}

.remove-image:hover {
    background-color: var(--error-color);
}

.login-prompt {
    background-color: var(--background-light);
    border-radius: 8px; /* 减小圆角 */
    padding: 1rem; /* 减小内边距 */
    text-align: center;
    margin-bottom: 1.25rem; /* 减小底部边距 */
    border: 1px solid var(--border-color);
}

.login-prompt p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem; /* 减小字体大小 */
}

.login-prompt a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-default);
}

.login-prompt a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* 评论列表 */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* 减小评论之间的间距 */
}

.comment-item {
    background-color: transparent; /* 透明背景 */
    border-radius: 0; /* 移除圆角 */
    padding: 0.5rem 0; /* 减小内边距且只保留上下内边距 */
    position: relative;
    border: none; /* 移除边框 */
    border-bottom: 1px solid rgba(61, 180, 242, 0.08); /* 只保留底部边框 */
    transition: background-color 0.2s ease;
    box-shadow: none; /* 移除阴影 */
    margin-bottom: 0; /* 移除底部外边距 */
}

.comment-item:hover {
    background-color: rgba(255, 255, 255, 0.02); /* 淡化悬停效果 */
    box-shadow: none;
    transform: none;
    border-color: rgba(61, 180, 242, 0.08);
}

.comment-header {
    margin-bottom: 0.25rem; /* 减小底部边距 */
}

.comment-user {
    display: flex;
    align-items: flex-start; /* 顶部对齐 */
    gap: 0.5rem; /* 减小间距 */
}

.comment-user-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.comment-username-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem; /* 减小间距 */
    margin-bottom: 0;
}

.comment-username {
    font-weight: 600;
    font-size: 0.875rem; /* 减小字体大小 */
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-default);
}

.comment-username:hover {
    color: var(--primary-color);
}

.comment-location {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    gap: 0.25rem;
}

/* 更新地区图标 */
.location-icon {
    font-size: 0.75rem;
    margin-right: 0.125rem;
    color: var(--text-tertiary);
}

.comment-time {
    font-size: 0.6875rem; /* 减小字体大小 */
    color: var(--text-tertiary);
    margin-left: 0.25rem;
}

.comment-content {
    font-size: 0.875rem; /* 减小字体大小 */
    line-height: 1.4; /* 减小行高 */
    margin: 0 0 0.5rem 2.5rem; /* 左侧缩进，紧贴头像用户名 */
    color: var(--text-secondary);
    word-break: break-word;
}

.comment-images {
    margin: 0 0 0.5rem 2.5rem; /* 左侧缩进，与内容对齐 */
    gap: 0.375rem; /* 减小间距 */
    display: flex;
    flex-wrap: wrap;
}

.comment-image-wrapper {
    width: 64px; /* 减小图片大小 */
    height: 64px;
    border-radius: 6px; /* 减小圆角 */
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-default);
}

.comment-image-wrapper:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.comment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-actions {
    margin: 0 0 0.5rem 2.5rem; /* 左侧缩进，与内容对齐 */
    gap: 0.75rem; /* 减小间距 */
    display: flex;
    align-items: center;
}

.comment-action {
    display: flex;
    align-items: center;
    gap: 0.25rem; /* 减小间距 */
    color: var(--text-tertiary);
    font-size: 0.75rem; /* 减小字体大小 */
    cursor: pointer;
    transition: var(--transition-default);
    padding: 0.125rem 0.25rem; /* 减小内边距 */
    border-radius: 4px; /* 减小圆角 */
    opacity: 0.8;
}

.comment-action:hover {
    color: var(--primary-color);
    background-color: transparent;
    opacity: 1;
}

.comment-action.liked {
    color: var(--accent-color);
}

.comment-action.liked:hover {
    color: var(--accent-color);
    background-color: transparent;
}

.toggle-replies {
    margin: 0 0 0.5rem 2.5rem; /* 左侧缩进，与内容对齐 */
    padding: 0.125rem 0; /* 只保留上下内边距 */
    color: var(--text-tertiary);
    font-size: 0.75rem; /* 减小字体大小 */
    cursor: pointer;
    transition: var(--transition-default);
    border-radius: 0;
    background-color: transparent;
    border: none;
    width: fit-content;
}

.toggle-replies:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.toggle-icon {
    margin-right: 0.375rem; /* 减小右边距 */
    transition: transform 0.3s ease;
    font-size: 0.75rem; /* 减小字体大小 */
}

.toggle-replies.expanded .toggle-icon {
    transform: rotate(180deg);
}

.comment-replies-container {
    margin: 0 0 0.5rem 2.5rem; /* 左侧缩进，与内容对齐 */
    padding-left: 0.5rem; /* 减小左内边距 */
    border-left: 1px solid rgba(61, 180, 242, 0.15); /* 淡化边框 */
}

.comment-replies-container::before {
    display: none; /* 移除装饰圆点 */
}

.reply-item {
    position: relative;
    margin: 0.25rem 0; /* 减小外边距 */
    padding: 0.375rem; /* 减小内边距 */
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px; /* 减小圆角 */
    border: none;
    transition: background-color 0.2s ease;
}

.reply-item:hover {
    transform: none; /* 移除悬停变换 */
    background-color: rgba(0, 0, 0, 0.15);
    box-shadow: none;
    border-color: transparent;
}

.reply-to {
    color: var(--text-tertiary);
    margin-right: 0.25rem; /* 减小右边距 */
    font-size: 0.75rem; /* 减小字体大小 */
}

.reply-to-name {
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-default);
}

.reply-to-name:hover {
    text-decoration: underline;
}

.reply-container {
    margin: 0.5rem 0 0.5rem 2.5rem; /* 左侧缩进，与内容对齐 */
}

.reply-input-container {
    display: flex;
    gap: 0.5rem; /* 减小间距 */
    margin: 0.5rem 0;
}

.reply-input-wrapper {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px; /* 减小圆角 */
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-default);
}

.reply-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(61, 180, 242, 0.2);
}

.reply-input {
    min-height: 40px; /* 减小高度 */
    padding: 0.5rem; /* 减小内边距 */
    color: var(--text-primary);
    outline: none;
    background-color: transparent;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    font-family: inherit;
    font-size: 0.8125rem; /* 减小字体大小 */
}

.reply-input[contenteditable="true"]:empty:before {
    content: attr(placeholder);
    color: var(--text-tertiary);
    opacity: 0.7;
}

.reply-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0.5rem; /* 减小内边距 */
    border-top: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.1);
}

.reply-tool-buttons {
    display: flex;
    gap: 0.375rem; /* 减小间距 */
}

.reply-action-buttons {
    display: flex;
    gap: 0.375rem; /* 减小间距 */
}

.cancel-reply-btn {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.5rem; /* 减小内边距 */
    border-radius: 12px; /* 减小圆角 */
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-default);
    font-size: 0.75rem; /* 减小字体大小 */
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cancel-reply-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.submit-reply-btn {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0.25rem 0.5rem; /* 减小内边距 */
    border-radius: 12px; /* 减小圆角 */
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-default);
    font-size: 0.75rem; /* 减小字体大小 */
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.submit-reply-btn:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.submit-reply-btn:disabled, .cancel-reply-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 加载更多按钮 */
.load-more-comments {
    display: flex;
    justify-content: center;
    margin: 0.75rem 0 0; /* 减小上外边距 */
}

.load-more-comments button {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.375rem 1.25rem; /* 减小内边距 */
    border-radius: 16px; /* 减小圆角 */
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-default);
    font-size: 0.8125rem; /* 减小字体大小 */
    position: relative;
    overflow: hidden;
    box-shadow: var(--button-shadow);
}

.load-more-comments button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(61, 180, 242, 0.2),
            transparent
    );
    transition: all 0.6s ease;
}

.load-more-comments button:hover {
    background-color: rgba(61, 180, 242, 0.1);
    box-shadow: 0 4px 12px rgba(61, 180, 242, 0.2);
}

.load-more-comments button:hover::before {
    left: 100%;
}

/* 加载中状态 */
.loading-comments {
    text-align: center;
    padding: 1.5rem 0; /* 减小内边距 */
    color: var(--text-tertiary);
    font-size: 0.875rem; /* 减小字体大小 */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem; /* 减小间距 */
}

.loading-comments::before {
    content: '';
    width: 24px; /* 减小加载图标大小 */
    height: 24px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: loading 0.8s linear infinite;
}

/* 没有评论的状态 */
.no-comments {
    text-align: center;
    padding: 1.5rem 1rem; /* 减小内边距 */
    color: var(--text-tertiary);
    font-size: 0.875rem; /* 减小字体大小 */
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 6px; /* 减小圆角 */
    border: 1px dashed var(--border-color);
    margin: 0.5rem 0; /* 减小外边距 */
}

/* 底部操作栏 */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(16, 24, 35, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    z-index: 90;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.comment-box {
    flex: 1;
    background-color: var(--background-light);
    border-radius: 20px;
    padding: 0.625rem 1.25rem;
    margin-right: 1rem;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: var(--transition-default);
    color: var(--text-tertiary);
    font-size: 0.9375rem;
}

.comment-box:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
    color: var(--text-secondary);
}

.bottom-actions {
    display: flex;
    gap: 0.75rem;
}

.action-btn {
    background-color: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.375rem;
    color: var(--text-secondary);
    transition: var(--transition-default);
}

.action-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.action-btn.active {
    color: var(--accent-color);
}

/* 漂亮的提示框 */
.toast-message {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(16, 24, 35, 0.9);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9375rem;
    z-index: 1000;
    animation: fadeInUp 0.3s ease-out, fadeOut 0.3s ease-in 1.7s forwards;
    border-left: 3px solid var(--primary-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.toast-message::before {
    content: '';
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}

/* 灯箱图片查看器 */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

.image-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 45, 85, 0.8);
    transform: rotate(90deg);
}

.image-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.zoom-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background-color: rgba(61, 180, 242, 0.3);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 为评论工具添加悬浮效果 */
.emoji-picker {
    background-color: rgba(25, 35, 50, 0.95) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    padding: 10px !important;
    backdrop-filter: blur(10px);
}

.emoji-item {
    border-radius: 8px !important;
    transition: var(--transition-default) !important;
}

.emoji-item:hover {
    background-color: rgba(61, 180, 242, 0.2) !important;
    transform: scale(1.2) !important;
}

/* 错误消息样式 */
.error-message {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
    padding: 1rem;
    border-radius: 8px;
    border: 1px dashed rgba(244, 67, 54, 0.3);
    text-align: center;
    margin: 1rem 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.error-message small {
    display: block;
    margin-top: 0.5rem;
    color: rgba(244, 67, 54, 0.7);
    font-size: 0.8125rem;
}

/* 用户个人资料弹出框 */
.user-profile-popup {
    position: absolute;
    background-color: var(--background-card);
    border-radius: 12px;
    padding: 1.25rem;
    width: 300px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    z-index: 100;
    top: calc(100% + 10px);
    left: 0;
    transition: var(--transition-default);
    animation: fadeInUp 0.3s ease;
    backdrop-filter: blur(10px);
}

.user-profile-popup::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background-color: var(--background-card);
    transform: rotate(45deg);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

.user-profile-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-username {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.profile-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.profile-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.profile-btn {
    flex: 1;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    transition: var(--transition-default);
}

.profile-btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.profile-btn-primary:hover {
    background-color: var(--primary-dark);
}

.profile-btn-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.profile-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .follow-btn {
        align-self: flex-start;
    }

    .comments-header h3 {
        font-size: 1.125rem;
    }

    .bottom-bar {
        padding: 0.625rem 0.75rem;
    }

    .action-btn {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .swiper-slide {
        height: 50vh;
    }

    .comment-item {
        padding: 0.5rem 0; /* 只保留上下内边距 */
    }

    .comment-replies-container {
        margin-left: 2.5rem; /* 与内容对齐 */
        padding-left: 0.5rem;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(61, 180, 242, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(61, 180, 242, 0.5);
}

/* 查看全部回复按钮 */
.view-more-replies {
    padding: 0.25rem 0;
    margin: 0 0 0.5rem 0;
    font-size: 0.75rem;
    color: var(--primary-color);
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.view-more-replies:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 动画效果 */
@keyframes commentFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-item {
    animation: commentFadeIn 0.15s ease-out;
}

/* 点赞动画 */
@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.comment-action.liked i {
    animation: likeAnimation 0.3s ease-out;
}

/* 底部空间 */
.bottom-spacer {
    height: 50px;
}


/* 在view.css或相应的样式文件中添加 */
.comment-voice-player {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 8px 12px;
    background-color: rgba(61, 180, 242, 0.1);
    border-radius: 20px;
    width: fit-content;
}

.voice-play-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--primary-color, #3db4f2);
    padding: 4px 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.voice-play-btn:hover {
    background-color: rgba(61, 180, 242, 0.2);
}

.voice-progress {
    flex: 1;
    min-width: 100px;
    height: 4px;
    background-color: rgba(61, 180, 242, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.voice-progress-bar {
    height: 100%;
    background-color: var(--primary-color, #3db4f2);
    transition: width 0.1s;
}

.replies-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
}

.no-replies {
    text-align: center;
    padding: 20px;
    color: var(--text-tertiary);
}