/* =========================================
   Forum Tech Modern Theme - Light Mode
   File: public/css/forum.css
   ========================================= */

/* 🔹 1. CSS 变量系统 (浅色科技主题) */
:root {
    /* 基础颜色 - 白色/浅色背景 */
    --bg-body: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    --bg-card: #FFFFFF;
    --bg-card-hover: #F1F5F9;
    --bg-glass: rgba(255, 255, 255, 0.9);
    --bg-surface: #FFFFFF;
    
    /* 文本颜色 - 深色适配白底 */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    
    /* 强调色 - 鲜艳霓虹渐变 (科技感核心) */
    --accent-start: #00D9FF;
    --accent-end: #7C3AED;
    --accent-primary: #06B6D4;
    --accent-secondary: #8B5CF6;
    --accent-pink: #EC4899;
    --accent-success: #10B981;
    --accent-warning: #F59E0B;
    --accent-danger: #EF4444;
    
    /* 边框与阴影 - 明亮精致 */
    --border-color: rgba(148, 163, 184, 0.3);
    --border-hover: rgba(6, 182, 212, 0.6);
    --border-accent: rgba(124, 58, 237, 0.4);
    --shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 0 30px rgba(6, 182, 212, 0.25);
    --shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.12), 0 0 40px rgba(6, 182, 212, 0.15);
    --shadow-card: 0 2px 12px rgba(15, 23, 42, 0.06);
    
    /* 渐变背景 */
    --gradient-primary: linear-gradient(135deg, #00D9FF 0%, #7C3AED 100%);
    --gradient-secondary: linear-gradient(135deg, #06B6D4 0%, #8B5CF6 100%);
    --gradient-accent: linear-gradient(135deg, #06B6D4 0%, #8B5CF6 50%, #EC4899 100%);
    --gradient-surface: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    
    /* 圆角与间距 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* 动画 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* 🔹 2. 全局重置与基础 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-body);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 🔹 3. 自定义滚动条 (浅色版) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-start), var(--accent-end));
    border-radius: 4px;
    border: 2px solid #F1F5F9;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-accent);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

::selection {
    background: var(--gradient-primary);
    color: #fff;
}

/* 🔹 4. 布局容器 */
.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 🔹 5. 顶部操作栏 */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
    padding: 1rem 0;
}

.header-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    text-shadow: 0 2px 10px rgba(6, 182, 212, 0.15);
    letter-spacing: -0.02em;
}

.header-subtitle {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
}

/* 🔹 6. 按钮样式 - 霓虹渐变 */
.btn-post {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35),
                0 0 25px rgba(124, 58, 237, 0.2);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-post:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.5),
                0 0 40px rgba(124, 58, 237, 0.35);
    filter: brightness(1.1);
}

.btn-post:hover::before {
    left: 100%;
}

.btn-post:active {
    transform: translateY(-1px) scale(1);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.4),
                0 0 60px rgba(124, 58, 237, 0.25);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--text-primary);
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.15);
}

/* 🔹 7. 搜索框 - 玻璃拟态 */
.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    backdrop-filter: blur(12px);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-card);
}

.search-box input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15),
                0 0 30px rgba(6, 182, 212, 0.2);
    background: #F8FAFC;
}

.search-box::before {
    content: "🔍";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0.5;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.search-box input:focus + ::before,
.search-box:has(input:focus)::before {
    opacity: 1;
}

/* 🔹 8. 主布局网格 */
.forum-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .forum-layout {
        grid-template-columns: 1fr 320px;
        align-items: start;
    }
}

/* 🔹 9. 帖子卡片 - 明亮科技风 */
.post-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 1;
}

.post-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.post-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    background: var(--bg-card-hover);
}

.post-card:hover::after {
    opacity: 1;
}

.post-card:active {
    transform: translateY(-1px);
}

/* 卡片头部 */
.post-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    user-select: none;
}

.post-meta {
    flex: 1;
    min-width: 0;
}

.post-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
}

.post-title a {
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.post-title a:hover {
    color: var(--accent-primary);
}

.post-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.post-info span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* 卡片内容 */
.post-excerpt {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-width: 0;
}

/* 统计数据 - 霓虹渐变数字 */
.post-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-shrink: 0;
    padding-left: 1rem;
    border-left: 2px solid var(--border-color);
}

.post-stats > div {
    text-align: center;
    min-width: 55px;
}

.stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* 🔹 10. 空状态 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.empty-state .icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 4px 10px rgba(6, 182, 212, 0.3));
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.empty-state h3 {
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.empty-state p {
    color: var(--text-secondary);
    margin: 0 0 1.5rem;
    font-weight: 500;
}

/* 🔹 11. 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 2rem;
}

.sidebar-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
    transition: border-color var(--transition-normal);
}

.sidebar-card:hover {
    border-color: var(--border-hover);
}

.sidebar-card h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

/* 分类列表 - 鲜艳高亮 */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.category-item:hover {
    background: rgba(6, 182, 212, 0.08);
    color: var(--accent-primary);
    transform: translateX(4px);
}

.category-item.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.15);
    transform: translateX(4px);
}

.category-item .icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.category-item .count {
    margin-left: auto;
    background: var(--gradient-primary);
    color: white;
    padding: 0.125rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

/* 统计网格 */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    font-size: 0.8125rem;
}

.stats-grid > div {
    background: linear-gradient(135deg, #F8FAFC, #FFFFFF);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all var(--transition-fast);
}

.stats-grid > div:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.15);
    transform: translateY(-2px);
}

.stats-grid .label {
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.stats-grid .value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stats-grid .value.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-grid .value.online {
    color: var(--accent-success);
    font-weight: 700;
}

/* 🔹 12. 帖子详情页样式 (show) */
.post-show-container {
    min-height: calc(100vh - 200px);
    padding-bottom: 3rem;
}

.post-show-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .post-show-grid {
        grid-template-columns: 1fr 320px;
    }
}

.post-show-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-show-header {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.post-show-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.post-show-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 1rem;
    line-height: 1.4;
    word-break: break-word;
    color: var(--text-primary);
}

.post-show-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.post-show-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-show-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
    object-fit: cover;
}

.post-show-content {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow-card);
}

.post-show-content img {
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    margin: 1rem 0;
    max-width: 100%;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-soft);
}

.post-show-content img:hover {
    transform: scale(1.03);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.2);
}

.post-show-content pre {
    background: #1E293B !important;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    overflow-x: auto;
    color: #E2E8F0;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}

.post-show-content blockquote {
    border-left: 4px solid var(--accent-primary);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(139, 92, 246, 0.08));
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-weight: 500;
}

.post-show-content a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 2px dashed rgba(6, 182, 212, 0.4);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.post-show-content a:hover {
    border-bottom-style: solid;
    color: var(--accent-secondary);
}

/* 附件区域 */
.attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-card);
}

.attachment-item:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.attachment-item .icon {
    font-size: 1.1rem;
}

/* 回复列表 */
.replies-section {
    border-top: 2px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 1rem;
}

.replies-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.reply-item {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-card);
}

.reply-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.1);
    transform: translateX(4px);
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.reply-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.reply-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.2);
    object-fit: cover;
}

.reply-time {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.reply-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.reply-content p {
    margin: 0;
}

/* 回复表单 */
.reply-form {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-card);
}

.reply-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    background: #F8FAFC;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    resize: vertical;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.reply-form textarea::placeholder {
    color: var(--text-muted);
}

.reply-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
}

.reply-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    gap: 0.75rem;
}

/* 🔹 13. 信息面板 (出售/任务) - 霓虹边框 */
.info-panel {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    position: relative;
}

.info-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.info-panel-header {
    padding: 1rem 1.25rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.info-panel-header .icon {
    font-size: 1.1rem;
}

.info-panel-body {
    padding: 1.25rem;
}

.info-panel-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.info-panel-price .amount {
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

.info-panel-price .currency {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1rem;
}

.info-panel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 2px solid rgba(148, 163, 184, 0.15);
    font-size: 0.9rem;
}

.info-panel-row:last-child {
    border-bottom: none;
}

.info-panel-row .label {
    color: var(--text-secondary);
    font-weight: 500;
}

.info-panel-row .value {
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'SF Mono', monospace;
}

.info-panel-footer {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #F8FAFC, #FFFFFF);
    border-top: 2px solid var(--border-color);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* 进度条 - 霓虹渐变 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
    border: 1px solid var(--border-color);
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

/* 🔹 14. 打赏区域 */
.tips-section {
    text-align: center;
    padding: 1.25rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.tips-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.tips-amounts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tips-amount {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-card);
}

.tips-amount:hover,
.tips-amount.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.tips-custom {
    width: 100%;
    max-width: 200px;
    padding: 0.5rem 1rem;
    background: #F8FAFC;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-align: center;
    margin: 0 auto 1rem;
    font-weight: 500;
}

.tips-custom:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
}

/* 🔹 15. 动画效果 */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

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

@keyframes glowPulse {
    0% { box-shadow: 0 0 10px rgba(6, 182, 212, 0.2); }
    50% { box-shadow: 0 0 25px rgba(6, 182, 212, 0.4), 
                    0 0 40px rgba(124, 58, 237, 0.25); }
    100% { box-shadow: 0 0 10px rgba(6, 182, 212, 0.2); }
}

.animate-glow {
    animation: glowPulse 2.5s infinite;
}

/* staggered animation delays */
.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.15s; }
.post-card:nth-child(3) { animation-delay: 0.2s; }
.post-card:nth-child(4) { animation-delay: 0.25s; }
.post-card:nth-child(5) { animation-delay: 0.3s; }

/* 🔹 16. 移动端适配 */
@media (max-width: 768px) {
    .header-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 0;
    }
    
    .header-title {
        font-size: 1.5rem;
    }
    
    .btn-post, .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .search-box {
        max-width: 100%;
        margin: 0 0 1.5rem;
    }
    
    .post-header {
        gap: 0.75rem;
    }
    
    .post-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .post-title {
        font-size: 1rem;
    }
    
    .post-info {
        gap: 0.5rem;
        font-size: 0.75rem;
    }
    
    .post-card > div:last-child {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }
    
    .post-excerpt {
        width: 100%;
    }
    
    .post-stats {
        width: 100%;
        padding-left: 0;
        border-left: none;
        border-top: 2px solid var(--border-color);
        padding-top: 0.75rem;
        justify-content: space-around;
    }
    
    .sidebar {
        position: static;
        order: -1;
    }
    
    .post-show-title {
        font-size: 1.25rem;
    }
    
    .post-show-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .info-panel-price .amount {
        font-size: 1.75rem;
    }
    
    .reply-form-actions {
        flex-direction: column;
    }
    
    .reply-form-actions .btn-primary {
        width: 100%;
    }
}

/* 🔹 17. 工具类 */
.text-glow {
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.border-glow {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}

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

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 加载骨架屏 */
.skeleton {
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-sm);
    color: transparent !important;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 隐藏但保留位置 */
.invisible-safe {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

/* 打印优化 */
@media print {
    body {
        background: #fff;
        color: #000;
    }
    
    .post-card, .sidebar-card, .info-panel {
        background: #fff;
        border-color: #ddd;
        box-shadow: none;
    }
    
    .btn-post, .search-box, .sidebar {
        display: none;
    }
}

/* 🔹 18. 背景装饰光晕 (可选 - 在HTML中添加) */
/* 使用示例：在body内添加装饰元素 */
.forum-bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.forum-bg-decoration::before,
.forum-bg-decoration::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.forum-bg-decoration::before {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6,182,212,0.25) 0%, transparent 70%);
}

.forum-bg-decoration::after {
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
}
/* =========================================
   🔹 帖子卡片新布局样式
   ========================================= */

/* 卡片顶部：左标题预览 | 右统计数据 */
.post-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.post-card-left {
    flex: 1;
    min-width: 0;
}

.post-title {
    margin: 0 0 0.4rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
}

.post-title a {
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.post-title a:hover {
    color: var(--accent-primary);
}

.post-preview {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
}

/* 右侧统计数据 */
.post-card-right {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-shrink: 0;
    padding-left: 1rem;
    border-left: 2px solid var(--border-color);
}

.post-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 45px;
}

.stat-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.stat-num {
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* 卡片底部：作者信息 + 金额标签 */
.post-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

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

.meta-reply strong {
    color: var(--accent-secondary);
}

/* 需求发布板块 - 金额标签 */
.post-price-tag {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
    border: 2px solid var(--accent-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-primary);
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.2);
}

.price-icon {
    font-size: 1rem;
}

.price-value {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* =========================================
   🔹 侧边栏 - 需求发布 & 最新文章
   ========================================= */

.demand-list,
.latest-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.demand-item,
.latest-item {
    display: block;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #F8FAFC, #FFFFFF);
    border: 2px solid var(--border-color);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.demand-item:hover,
.latest-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.15);
    background: white;
}

.demand-title,
.latest-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.demand-meta,
.latest-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.demand-author,
.latest-author {
    font-weight: 500;
}

.demand-price {
    font-weight: 700;
    color: var(--accent-primary);
    background: rgba(6, 182, 212, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
}

.latest-time {
    font-weight: 500;
}

.sidebar-empty {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    padding: 1rem;
}

.sidebar-more {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color);
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.sidebar-more:hover {
    color: var(--accent-secondary);
}

/* =========================================
   🔹 分页样式优化
   ========================================= */

.pagination-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.pagination-wrapper nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.pagination-wrapper .page-item {
    display: inline-block;
}

.pagination-wrapper .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-card);
}

.pagination-wrapper .page-link:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(6, 182, 212, 0.08);
    transform: translateY(-2px);
}

.pagination-wrapper .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.pagination-wrapper .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    background: #F1F5F9;
}

/* 修复箭头符号大小 */
.pagination-wrapper .page-link span {
    font-size: 1rem !important;
    line-height: 1;
    display: flex;
    align-items: center;
}

.pagination-wrapper .page-link svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

/* 移动端分页适配 */
@media (max-width: 480px) {
    .pagination-wrapper .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .pagination-wrapper .page-link span {
        font-size: 0.9rem !important;
    }
}

/* =========================================
   🔹 移动端卡片布局适配
   ========================================= */

@media (max-width: 768px) {
    .post-card-top {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-card-right {
        width: 100%;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-top: 0.75rem;
        justify-content: space-around;
    }
    
    .post-card-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-price-tag {
        align-self: flex-end;
    }
    
    .post-preview {
        -webkit-line-clamp: 2;
    }
}
/* =========================================
   🔹 状态标签样式
   ========================================= */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* 状态颜色 */
.status-selling    { color: #10b981; background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.3); }
.status-sold       { color: #64748b; background: rgba(100, 116, 139, 0.12); border-color: rgba(100, 116, 139, 0.3); }
.status-recruiting { color: #3b82f6; background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.3); }
.status-progress   { color: #f59e0b; background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.3); }
.status-review     { color: #8b5cf6; background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.3); }
.status-completed  { color: #10b981; background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.3); }
.status-cancelled  { color: #ef4444; background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.3); }
.status-dispute    { color: #ec4899; background: rgba(236, 72, 153, 0.12); border-color: rgba(236, 72, 153, 0.3); }
.status-normal     { color: #64748b; background: rgba(100, 116, 139, 0.12); border-color: rgba(100, 116, 139, 0.3); }
.status-unknown    { color: #94a3b8; background: rgba(148, 163, 184, 0.12); border-color: rgba(148, 163, 184, 0.3); }

/* 状态标签悬停效果 */
.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 在帖子预览后显示状态 */
.post-preview-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-preview {
    flex: 1;
    min-width: 0;
}

.post-status-wrapper {
    flex-shrink: 0;
}
.demand-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.demand-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    flex: 1;
}