/**
 * 社区前台样式
 * 基于 community.html 模板
 */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 公告栏 */
/* 顶部公告栏 - 系统设置公告（区别于首页数据库公告） */
.site-announcement-bar {
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}

.site-announcement-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.site-announcement-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-announcement-icon {
    font-size: 1rem;
}

.site-announcement-text {
    font-size: 0.875rem;
    color: #ffffff;
}

.site-announcement-text strong {
    color: #ffd93d;
}

.site-announcement-divider {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .site-announcement-bar {
        padding: 8px 16px;
        gap: 12px;
    }
    
    .site-announcement-text {
        font-size: 0.8rem;
    }
}

.announcement-bar {
    background: linear-gradient(90deg, #ff6b6b 0%, #ee5a24 50%, #ffd93d 100%);
    color: white;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
}

.announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        transparent 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.announcement-content {
    display: flex;
    align-items: center;
    animation: scroll 20s linear infinite;
    white-space: nowrap;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.announcement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 50px;
}

.announcement-icon {
    font-size: 1rem;
    animation: pulse 2s infinite;
}

.announcement-title {
    font-weight: 600;
    color: #ffd93d;
    margin-right: 4px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.announcement-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
}

.announcement-text strong {
    color: #ffd93d;
}

.announcement-divider {
    width: 6px;
    height: 6px;
    background: #ffd93d;
    border-radius: 50%;
    margin: 0 20px;
}

/* 导航栏 */
.navbar {
    background: var(--card-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-color);
    border-radius: 20px;
    font-size: 0.875rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--warning-color);
}

.status-dot.logged-in {
    background: var(--success-color);
}

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

.login-btn {
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--border-color);
}

.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 100;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-color);
}

.dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* 主容器 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 24px;
}

/* 侧边栏 */
.sidebar-left,
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 用户卡片 */
.profile-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.profile-card.guest-card {
    text-align: center;
}

.guest-icon {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.guest-card h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.guest-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 3px solid var(--primary-color);
}

.profile-avatar.large {
    width: 100px;
    height: 100px;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-title {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

.profile-title.gold {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #8b4513;
}

.profile-title.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #4a4a4a;
}

.profile-title.bronze {
    background: linear-gradient(135deg, #cd7f32, #daa06d);
    color: #5c3317;
}

.profile-title.purple {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.profile-title.blue {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.profile-title.green {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.profile-title.red {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.profile-username {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 菜单卡片 */
.menu-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: var(--text-primary);
}

.menu-item:hover {
    background: var(--bg-color);
}

.menu-item.active {
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
}

.menu-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 主内容区 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 搜索筛选栏 */
.search-filter-bar {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-color);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.search-box svg {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    outline: none;
    color: var(--text-primary);
}

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

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-btn {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    background: transparent;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    border-color: transparent;
}

/* 帖子卡片 */
.post-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

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

.post-user-info {
    flex: 1;
}

.post-user-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.post-user-title {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 500;
    white-space: nowrap;
}

.post-user-title.gold {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #8b4513;
}

.post-user-title.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #4a4a4a;
}

.post-user-title.bronze {
    background: linear-gradient(135deg, #cd7f32, #daa06d);
    color: #5c3317;
}

.post-user-title.purple {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.post-user-title.blue {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.post-user-title.green {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.post-user-title.red {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

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

.post-more {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--text-secondary);
}

.post-more:hover {
    background: var(--bg-color);
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.post-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.post-click-hint {
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-top: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.post-card:hover .post-click-hint {
    opacity: 1;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
}

.tag:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
}

.post-actions {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

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

.action-btn.liked {
    color: var(--danger-color);
}

/* 小组件 */
.widget-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.trending-item:hover {
    background: var(--bg-color);
}

.trending-rank {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.trending-info {
    flex: 1;
}

.trending-topic {
    font-weight: 500;
    font-size: 0.875rem;
}

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

/* 热门帖子列表 */
.hot-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-post-item {
    padding: 12px;
    border-radius: 8px;
    background: var(--bg-color);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.hot-post-item:hover {
    background: var(--border-color);
}

.hot-post-title {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.hot-post-stats {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    gap: 12px;
}

/* 活跃用户列表 */
.active-users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.active-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.active-user-item:hover {
    background: var(--bg-color);
}

.active-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.active-user-name {
    font-weight: 500;
    font-size: 0.875rem;
}

.active-user-posts {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 无结果 */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    background: var(--card-bg);
    border-radius: 16px;
}

.no-results svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.no-results p {
    font-size: 0.9rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 底部 */
.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-contact {
    margin-top: 16px;
}

.footer-icp {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 8px 0;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-icp-line {
    margin-top: 8px;
}

.footer-icp-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.footer-icp-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 移动端底部导航 */
.mobile-bottom-nav {
    display: none;
}

/* 帖子详情页样式 */
.post-detail-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.post-detail-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.post-detail-user-info {
    flex: 1;
}

.post-detail-user-name {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-detail-meta {
    display: flex;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.post-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.post-detail-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.post-detail-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

.post-detail-content {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.post-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.post-detail-stats {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.post-detail-stats strong {
    color: var(--text-primary);
}

.post-detail-actions-bar {
    display: flex;
    gap: 12px;
}

.post-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border-color);
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.post-action-btn:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.post-action-btn.liked {
    color: var(--danger-color);
    border-color: var(--danger-color);
}

/* 评论区 */
.comments-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.comments-title {
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1rem;
}

.comment-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

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

.comment-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: border-color 0.2s;
}

.comment-input:focus {
    border-color: var(--primary-color);
}

.comment-submit {
    margin-top: 12px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.comment-submit:hover {
    transform: translateY(-1px);
}

.comment-login-hint {
    text-align: center;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 8px;
    margin-bottom: 20px;
}

.comment-login-hint a {
    color: var(--primary-color);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 12px;
}

.comment-content {
    flex: 1;
}

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

.comment-user-name {
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-user-title {
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.65rem;
}

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

.comment-text {
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 8px;
}

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

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

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

.replies-list {
    margin-top: 12px;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
}

.reply-item {
    display: flex;
    gap: 8px;
    padding: 8px 0;
}

.reply-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.reply-content {
    flex: 1;
    font-size: 0.8rem;
}

.reply-user-name {
    font-weight: 500;
    margin-right: 8px;
}

.reply-text {
    color: var(--text-primary);
}

.reply-time {
    color: var(--text-secondary);
    margin-left: 8px;
}

/* 用户主页样式 */
.user-tabs {
    display: flex;
    gap: 4px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
}

.user-tab {
    flex: 1;
    padding: 10px 16px;
    text-align: center;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.user-tab:hover {
    color: var(--primary-color);
}

.user-tab.active {
    background: var(--primary-color);
    color: white;
}

.follow-btn {
    width: 100%;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
}

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

.follow-btn.following {
    background: var(--bg-color);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.edit-profile-btn {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background: var(--bg-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    margin-top: 12px;
    transition: all 0.2s;
}

.edit-profile-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.user-comments-list,
.user-likes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-comment-item,
.user-like-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-comment-item:hover,
.user-like-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.create-post-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.create-post-btn:hover {
    transform: translateY(-1px);
}

/* 搜索页样式 */
.search-card {
    text-align: left;
}

.search-card h3 {
    margin-bottom: 12px;
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-submit {
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.search-header {
    margin-bottom: 20px;
}

.search-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.search-count {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 8px;
}

.search-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--card-bg);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.tag-item:hover {
    background: var(--primary-color);
    color: white;
}

.tag-name {
    font-weight: 500;
}

.tag-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.tag-item:hover .tag-count {
    color: rgba(255, 255, 255, 0.8);
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--card-bg);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.user-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-item .user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.user-item .user-info {
    flex: 1;
}

.user-item .user-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.user-item .user-username {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.search-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.search-empty svg {
    margin-bottom: 16px;
    color: var(--border-color);
}

.search-empty h2 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.hot-search-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hot-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.hot-search-item:hover {
    background: var(--bg-color);
}

.hot-search-rank {
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.hot-search-keyword {
    font-size: 0.875rem;
}

/* 推荐列表 */
.recommended-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommended-item {
    padding: 12px;
    border-radius: 8px;
    background: var(--bg-color);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.recommended-item:hover {
    background: var(--border-color);
}

.recommended-title {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.recommended-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    gap: 12px;
}

/* 动画 */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .sidebar-left,
    .sidebar-right {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .sidebar-left {
        order: -1;
    }

    .main-content {
        order: 0;
    }

    .sidebar-right {
        order: 1;
    }

    .profile-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        text-align: left;
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .profile-info {
        flex: 1;
    }

    .profile-name {
        font-size: 1rem;
        margin-bottom: 2px;
    }

    .profile-username {
        margin-bottom: 8px;
    }

    .profile-bio {
        display: none;
    }

    .profile-stats {
        border-top: none;
        padding-top: 0;
        gap: 16px;
    }

    .stat-number {
        font-size: 1rem;
    }

    .menu-card {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .menu-item {
        flex: 1;
        min-width: 80px;
        justify-content: center;
        padding: 10px 12px;
    }

    .widget-card {
        padding: 16px;
    }

    .trending-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .trending-item {
        padding: 6px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 12px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .user-status {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .login-btn {
        padding: 6px 14px;
        font-size: 0.875rem;
    }

    .main-container {
        padding: 12px;
        padding-bottom: 80px;
    }

    .menu-card {
        display: none;
    }

    .post-card {
        padding: 16px;
        border-radius: 12px;
    }

    .post-header {
        gap: 10px;
    }

    .avatar {
        width: 36px;
        height: 36px;
    }

    .post-user-name {
        font-size: 0.9rem;
    }

    .post-time {
        font-size: 0.75rem;
    }

    .post-title {
        font-size: 1.1rem;
    }

    .post-subtitle {
        font-size: 0.85rem;
    }

    .post-actions {
        gap: 8px;
        padding-top: 12px;
    }

    .action-btn {
        padding: 6px 8px;
        font-size: 0.8rem;
    }

    .action-btn span {
        display: none;
    }

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

    .footer-container {
        padding: 24px 16px;
        gap: 24px;
    }

    .footer-title {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .footer-desc {
        font-size: 0.8rem;
    }

    .footer-links a {
        font-size: 0.8rem;
    }

    .footer-bottom {
        padding: 16px;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }

    .search-filter-bar {
        padding: 12px;
        margin-bottom: 12px;
    }

    .search-box {
        padding: 8px 12px;
        margin-bottom: 10px;
    }

    .search-box input {
        font-size: 0.85rem;
    }

    .category-filter {
        gap: 6px;
    }

    .category-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .sidebar-left,
    .sidebar-right {
        gap: 12px;
    }

    .profile-card {
        padding: 16px;
    }

    .profile-avatar {
        width: 50px;
        height: 50px;
    }

    .profile-name {
        font-size: 0.9rem;
    }

    .profile-username {
        font-size: 0.75rem;
    }

    .stat-number {
        font-size: 0.9rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .widget-card {
        padding: 12px;
    }

    .widget-title {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .trending-list {
        grid-template-columns: 1fr;
    }

    .trending-topic {
        font-size: 0.8rem;
    }

    .trending-count {
        font-size: 0.7rem;
    }

    .trending-rank {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--card-bg);
        border-top: 1px solid var(--border-color);
        padding: 6px 0;
        padding-bottom: calc(6px + env(safe-area-inset-bottom));
        z-index: 100;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    }

    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 4px 0;
        color: var(--text-secondary);
        text-decoration: none;
        transition: color 0.2s;
    }

    .mobile-nav-item.active {
        color: var(--primary-color);
    }

    .mobile-nav-item svg {
        width: 20px;
        height: 20px;
    }

    .mobile-nav-item span {
        font-size: 0.65rem;
        font-weight: 500;
    }

    .footer {
        margin-bottom: 70px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .users-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .announcement-bar {
        padding: 6px 0;
    }

    .announcement-item {
        padding: 0 16px;
    }

    .announcement-text {
        font-size: 0.65rem;
    }

    .announcement-icon {
        font-size: 0.8rem;
    }

    .announcement-divider {
        margin: 0 10px;
        width: 4px;
        height: 4px;
    }

    .navbar-container {
        height: 52px;
        padding: 0 10px;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-user {
        gap: 6px;
    }

    .user-status {
        padding: 2px 6px;
        font-size: 0.65rem;
    }

    .status-dot {
        width: 5px;
        height: 5px;
    }

    .login-btn {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .main-container {
        padding: 8px;
        padding-bottom: 65px;
    }

    .search-filter-bar {
        padding: 10px;
        margin-bottom: 10px;
    }

    .search-box {
        padding: 6px 10px;
        margin-bottom: 8px;
    }

    .search-box svg {
        width: 16px;
        height: 16px;
    }

    .search-box input {
        font-size: 0.8rem;
    }

    .category-filter {
        gap: 4px;
    }

    .category-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .post-card {
        padding: 10px;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .post-header {
        margin-bottom: 8px;
        gap: 8px;
    }

    .post-title {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .post-subtitle {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .avatar {
        width: 28px;
        height: 28px;
    }

    .post-user-name {
        font-size: 0.8rem;
    }

    .post-time {
        font-size: 0.65rem;
    }

    .post-tags {
        gap: 4px;
        margin-bottom: 10px;
    }

    .tag {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    .post-actions {
        gap: 4px;
        padding-top: 8px;
    }

    .action-btn {
        padding: 4px 5px;
        font-size: 0.7rem;
    }

    .action-btn svg {
        width: 14px;
        height: 14px;
    }

    .post-more {
        padding: 3px;
    }

    .post-more svg {
        width: 14px;
        height: 14px;
    }

    .footer-container {
        padding: 16px 10px;
        gap: 16px;
    }

    .footer-title {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .footer-desc {
        font-size: 0.7rem;
    }

    .footer-links {
        gap: 6px;
    }

    .footer-links a {
        font-size: 0.7rem;
    }

    .footer-bottom {
        padding: 10px;
    }

    .footer-bottom p {
        font-size: 0.7rem;
    }

    .mobile-bottom-nav {
        padding: 3px 0;
        padding-bottom: calc(3px + env(safe-area-inset-bottom));
    }

    .mobile-nav-item {
        padding: 3px 0;
    }

    .mobile-nav-item svg {
        width: 18px;
        height: 18px;
    }

    .mobile-nav-item span {
        font-size: 0.6rem;
    }

    .sidebar-left,
    .sidebar-right {
        gap: 8px;
    }

    .profile-card {
        padding: 12px;
        gap: 12px;
    }

    .profile-avatar {
        width: 40px;
        height: 40px;
    }

    .profile-name {
        font-size: 0.85rem;
    }

    .profile-username {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }

    .stat-number {
        font-size: 0.85rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .widget-card {
        padding: 10px;
    }

    .widget-title {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .trending-item {
        padding: 4px;
    }

    .trending-topic {
        font-size: 0.75rem;
    }

    .trending-count {
        font-size: 0.65rem;
    }

    .trending-rank {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }
}

/* 分享弹窗样式 */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal.show {
    opacity: 1;
    visibility: visible;
}

.share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.share-modal-content {
    position: relative;
    background: var(--card-bg);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.share-modal.show .share-modal-content {
    transform: scale(1) translateY(0);
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 0;
}

.share-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.share-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.2s;
}

.share-modal-close:hover {
    background: var(--bg-color);
    color: var(--text-primary);
}

.share-modal-body {
    padding: 20px;
}

.share-platforms {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.share-platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.share-platform-btn:hover {
    background: var(--bg-color);
    transform: translateY(-2px);
}

.share-platform-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.share-platform-icon svg {
    width: 24px;
    height: 24px;
}

.share-platform-btn.wechat .share-platform-icon {
    background: #07c160;
    color: white;
}

.share-platform-btn.weibo .share-platform-icon {
    background: #e6162d;
    color: white;
}

.share-platform-btn.qq .share-platform-icon {
    background: #12b7f5;
    color: white;
}

.share-platform-btn.copy .share-platform-icon {
    background: var(--bg-color);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.share-platform-btn span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.share-link-box {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: var(--bg-color);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.share-link-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    color: var(--text-secondary);
    outline: none;
}

.share-link-btn {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.share-link-btn:hover {
    background: var(--primary-hover);
}

/* 微信分享弹窗 */
.wechat-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wechat-share-modal.show {
    opacity: 1;
    visibility: visible;
}

.wechat-share-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.wechat-share-content {
    position: relative;
    background: var(--card-bg);
    border-radius: 16px;
    width: 90%;
    max-width: 320px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.wechat-share-modal.show .wechat-share-content {
    transform: scale(1) translateY(0);
}

.wechat-share-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.wechat-qr-placeholder {
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
    background: var(--bg-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
}

.wechat-qr-placeholder p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.wechat-url {
    font-size: 0.7rem !important;
    margin-top: 8px !important;
    word-break: break-all;
    padding: 0 10px;
}

.wechat-tip {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.wechat-close-btn {
    padding: 10px 24px;
    background: var(--bg-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.wechat-close-btn:hover {
    background: var(--border-color);
}

/* 分享弹窗移动端适配 */
@media (max-width: 480px) {
    .share-modal-content {
        width: 95%;
        border-radius: 12px;
    }

    .share-modal-header {
        padding: 16px 16px 0;
    }

    .share-modal-header h3 {
        font-size: 1rem;
    }

    .share-modal-body {
        padding: 16px;
    }

    .share-platforms {
        gap: 12px;
        margin-bottom: 20px;
    }

    .share-platform-btn {
        padding: 12px 4px;
    }

    .share-platform-icon {
        width: 44px;
        height: 44px;
    }

    .share-platform-icon svg {
        width: 20px;
        height: 20px;
    }

    .share-platform-btn span {
        font-size: 0.75rem;
    }

    .share-link-box {
        padding: 10px;
    }

    .share-link-input {
        font-size: 0.8rem;
    }

    .share-link-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .wechat-share-content {
        padding: 20px;
    }

    .wechat-qr-placeholder {
        width: 140px;
        height: 140px;
    }
}

/* Toast 提示样式 - 从 app.js 移入，避免 CSP 内联样式问题 */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 24px;
    background: #333;
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    background: #10b981;
}

.toast-error {
    background: #ef4444;
}

.toast-warning {
    background: #f59e0b;
}

/* 辅助类 - 用于复制功能的隐藏输入框，避免 CSP 内联样式问题 */
.sr-only-input {
    position: fixed;
    opacity: 0;
    pointer-events: none;
}
