/* Global Styles */
:root {
    --primary-color: #5A7BD3;    /* 青靛蓝 */
    --secondary-color: #FFA96B;  /* 柔粉橙 */
    --accent-color: #F76666;     /* 淡红 */
    --bg-light: #F8F9FA;         /* 极浅灰 */
    --text-dark: #333333;
    --text-muted: #666666;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --online-color: #4CAF50;
    --offline-color: #999999;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Header & Nav */
.top-nav {
    background-color: var(--white);
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
}

/* Online Status Indicator */
.online-status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.online-status-indicator.online {
    background-color: var(--online-color);
}

.online-status-indicator.offline {
    background-color: var(--offline-color);
}

.top-nav .container {
    max-width: 1400px; /* 增加宽度以适应更多内容 */
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    display: block;
}

.main-menu {
    flex: 1;
    margin: 0 30px;
}

.main-menu ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.main-menu ul li a {
    text-decoration: none;
    color: var(--text-dark);
    padding: 10px 15px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s;
    border-radius: 8px;
    white-space: nowrap; /* 禁止换行 */
}

.main-menu ul li a:hover {
    background-color: rgba(90, 123, 211, 0.05);
    color: var(--primary-color);
}

.main-menu ul li a.active {
    color: var(--primary-color);
    background-color: rgba(90, 123, 211, 0.1);
    font-weight: 700;
}

.main-menu ul li a.admin-link {
    color: #e74c3c;
}

.main-menu ul li a.admin-link:hover {
    background-color: rgba(231, 76, 60, 0.05);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.search-bar {
    display: flex;
    background: #f1f3f6;
    padding: 0 12px;
    border-radius: 16px;
    transition: all 0.3s;
    border: 1px solid transparent;
    align-items: center;
    height: 28px;
    position: relative;
    min-width: 200px;
    flex-shrink: 0;
}

.search-bar:focus-within {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(90, 123, 211, 0.1);
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    padding: 0 10px;
    width: 160px; /* 初始宽度与左边文字平齐 */
    font-size: 13px;
    transition: width 0.3s;
    height: 100%;
    line-height: 28px;
    box-sizing: border-box;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-bar:focus-within input {
    width: 200px; /* 聚焦时展开 */
}

.search-bar button {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    margin-left: 8px;
    font-size: 14px;
}

.auth-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-link {
    position: relative;
    color: var(--text-muted);
    font-size: 20px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.icon-link:hover {
    color: var(--primary-color);
}

.icon-link .badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid var(--white);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
}

.user-profile i {
    font-size: 22px;
    color: var(--text-muted);
}

.logout-btn, .login-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.3s;
}

.logout-btn:hover, .login-link:hover {
    color: var(--primary-color);
}

.register-btn {
    padding: 8px 20px !important;
    font-size: 14px !important;
    border-radius: 20px !important;
}

/* Hero Section */
.hero-section {
    padding: 40px 0;
}

/*
.hero-banner {
    flex: 2;
    background: linear-gradient(135deg, var(--primary-color), #8A99E8);
    height: 400px;
    border-radius: var(--radius);
    margin-right: 30px;
    display: flex;
    align-items: center;
    padding: 0 50px;
    color: var(--white);
}

.banner-item h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.banner-item p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    background-color: #4a69b8;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.auth-menu a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-menu a:hover {
    color: var(--primary-color);
}

/* Auth Pages */
.card input:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(90, 123, 211, 0.1);
}

.hero-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.mini-item {
    display: flex;
    margin-bottom: 15px;
    gap: 10px;
}

.mini-item .thumb {
    width: 60px;
    height: 60px;
    background: #eee;
    border-radius: 8px;
}

.mini-item .info h4 {
    font-size: 14px;
}

.mini-item .info span {
    font-size: 12px;
    color: var(--text-muted);
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f3ff;
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 12px;
    margin: 0 5px 10px 0;
}

/* 热门作品链接 */
.mini-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.mini-item-link:hover {
    transform: translateY(-2px);
}

.mini-item-link:hover .mini-item {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.likes-count {
    font-size: 11px;
    color: var(--accent-color);
    margin-top: 5px;
    display: block;
}

/* 创作者徽章链接 */
.creator-badge {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.creator-badge:hover {
    transform: scale(1.05);
}

.creator-badge:hover .badge {
    background: var(--primary-color);
    color: white;
}

/* 移除链接颜色 */
.mini-item-link,
.creator-badge {
    color: inherit;
}

.mini-item-link:hover,
.creator-badge:hover {
    color: inherit;
}

/* Waterfall Content */
.content-grid {
    padding-bottom: 80px;
}

.section-header {
    margin: 40px 0 20px;
}

.section-header h2 {
    font-size: 24px;
}

.section-header .more {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
}

.waterfall-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.work-card {
    padding: 0;
    overflow: visible;
    transition: transform 0.3s;
    position: relative;
}

.work-card:hover {
    transform: translateY(-5px);
}

.work-img {
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 20px;
}

.card-content h4 {
    margin-bottom: 10px;
}

.card-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.meta {
    font-size: 12px;
    color: var(--text-muted);
}

.meta .author {
    color: var(--primary-color);
}

/* Floating Nav */
.floating-nav {
    position: fixed;
    right: 30px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-nav a {
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    transition: all 0.3s;
}

.floating-nav a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Footer */
.main-footer {
    background: #2c3e50;
    color: #bdc3c7;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #3e4f5f;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
}

/* ==================== 评论区样式 ==================== */

.comments-section {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    background: #fafbfc;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px;
    margin-top: 10px;
    width: 100%;
}

.comments-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.comments-total {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

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

.loading-comments,
.no-comments {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.no-comments i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
    color: #ddd;
}

/* 评论树结构 */
.comments-tree {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.comment-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.comment-username {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color);
}

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

.comment-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
    word-wrap: break-word;
    margin-bottom: 8px;
}

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

.comment-action-btn {
    background: none;
    border: none;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s;
}

.comment-action-btn:hover {
    color: var(--primary-color);
}

.comment-action-btn.delete-btn:hover {
    color: var(--accent-color);
}

/* 回复容器 */
.replies-container {
    margin-top: 10px;
    padding-left: 10px;
    border-left: 2px solid #e8e8e8;
}

.replies-container .comment-item {
    padding: 8px 0;
}

.replies-container .comment-avatar img {
    width: 28px;
    height: 28px;
}

.replies-container .comment-username {
    font-size: 13px;
}

.replies-container .comment-text {
    font-size: 13px;
}

/* 评论输入区域 */
.comment-input-area {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e8e8e8;
}

.comment-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.comment-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.comment-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(90, 123, 211, 0.1);
}

.comment-submit-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.comment-submit-btn:hover {
    background: #4a69b8;
    transform: translateY(-1px);
}

.reply-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #eee;
}

.reply-text {
    font-size: 13px;
    color: var(--text-muted);
}

.reply-username {
    color: var(--primary-color);
    font-weight: 500;
}

.cancel-reply-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 8px;
}

.cancel-reply-btn:hover {
    color: var(--accent-color);
}

/* 评论数量显示 */
.comments-container {
    transition: color 0.3s;
}

.comments-container:hover {
    color: var(--primary-color) !important;
}

.comments-container:hover i {
    color: var(--primary-color);
}

/* 滚动条样式 */
.comments-list::-webkit-scrollbar {
    width: 6px;
}

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

.comments-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* ==================== 好友和私信样式 ==================== */

/* 好友页面 */
.friends-page {
    max-width: 900px;
    margin: 0 auto;
}

.friends-header {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.friends-header h2 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 24px;
}

.friends-header h2 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.friends-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: #f5f7fa;
    color: var(--primary-color);
}

.tab-btn.active {
    background: rgba(90, 123, 211, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.badge-count {
    background: var(--accent-color);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.friends-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px 30px;
    box-shadow: var(--shadow);
    min-height: 400px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* 加载和空状态 */
.loading-state,
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.loading-state i,
.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    color: #ddd;
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* 好友列表 */
.friends-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.friend-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fafbfc;
    border-radius: 12px;
    transition: all 0.3s;
}

.friend-item:hover {
    background: #f0f3f7;
    transform: translateX(5px);
}

.friend-avatar {
    position: relative;
    margin-right: 15px;
}

.friend-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.friend-info {
    flex: 1;
}

.friend-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.friend-status {
    font-size: 13px;
    color: var(--text-muted);
}

.friend-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 14px;
}

.action-btn.chat-btn {
    background: var(--primary-color);
    color: white;
}

.action-btn.chat-btn:hover {
    background: #4a69b8;
    transform: scale(1.1);
}

.action-btn.delete-btn {
    background: #f5f5f5;
    color: #999;
}

.action-btn.delete-btn:hover {
    background: var(--accent-color);
    color: white;
}

/* 好友申请 */
.requests-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.request-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fafbfc;
    border-radius: 12px;
    transition: all 0.3s;
}

.request-avatar {
    margin-right: 15px;
}

.request-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.request-info {
    flex: 1;
}

.request-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

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

.request-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* 搜索用户 */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 25px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(90, 123, 211, 0.1);
}

.search-box button {
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
}

.search-box button:hover {
    background: #4a69b8;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fafbfc;
    border-radius: 12px;
    transition: all 0.3s;
}

.result-avatar {
    margin-right: 15px;
}

.result-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.result-info {
    flex: 1;
}

.result-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
}

.result-action {
    display: flex;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status-badge.accepted {
    background: #e8f5e9;
    color: #4caf50;
}

.status-badge.pending {
    background: #fff3e0;
    color: #ff9800;
}

/* 聊天弹窗 */
.chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.chat-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    height: 80vh;
    max-height: 700px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideUp 0.3s ease;
}

@keyframes chatSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--primary-color);
    color: white;
}

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

.chat-user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}

.chat-user-info span {
    font-weight: 600;
    font-size: 16px;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.chat-close:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.chat-loading,
.chat-empty,
.chat-error {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.chat-message {
    margin-bottom: 15px;
    max-width: 70%;
}

.message-mine {
    margin-left: auto;
}

.message-other {
    margin-right: auto;
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-mine .message-content {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-other .message-content {
    background: white;
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
    text-align: right;
}

.message-mine .message-time {
    text-align: right;
}

.message-other .message-time {
    text-align: left;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #eee;
}

.chat-input-area textarea {
    flex: 1;
    border: 2px solid #e8e8e8;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
}

.chat-input-area textarea:focus {
    border-color: var(--primary-color);
}

.chat-input-area button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input-area button:hover {
    background: #4a69b8;
    transform: scale(1.05);
}

/* 导航栏消息角标 */
.msg-badge {
    background: #9c27b0 !important;
}