/* ==================== 基础样式 ==================== */
:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    --success-color: #48bb78;
    --danger-color: #f56565;
    --warning-color: #ed8936;
    --info-color: #4299e1;
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-color: #f7fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --radius-lg: 12px;
    --header-height: 60px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ==================== 按钮样式 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

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

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

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==================== 头部导航 ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo i {
    font-size: 28px;
    -webkit-text-fill-color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
}

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

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

.user-menu .dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: background 0.3s;
}

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

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

.user-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    overflow: hidden;
}

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

.user-menu .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-color);
    transition: background 0.3s;
}

.user-menu .dropdown-menu a:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow);
    z-index: 999;
    padding: 10px 0;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-color);
}

.mobile-menu a.active {
    color: var(--primary-color);
    background: var(--bg-color);
}

/* ==================== 主要内容 ==================== */
.main {
    padding-top: var(--header-height);
    min-height: calc(100vh - 200px);
}

/* ==================== Hero区域 ==================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 16px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.hero-btns .btn-outline {
    color: white;
    border-color: white;
}

.hero-btns .btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* ==================== 分类区域 ==================== */
.categories {
    padding: 60px 0;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.category-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.category-card .post-count {
    display: inline-block;
    background: var(--bg-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-light);
}

/* ==================== 帖子列表 ==================== */
.latest-posts {
    padding: 60px 0;
    background: white;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.view-all {
    color: var(--primary-color);
    font-weight: 500;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-color);
    padding: 20px;
    border-radius: var(--radius);
    transition: all 0.3s;
    position: relative;
}

.post-item:hover {
    box-shadow: var(--shadow);
}

.post-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 60px;
}

.post-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author span {
    font-size: 12px;
    color: var(--text-light);
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.post-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-content h3 a:hover {
    color: var(--primary-color);
}

.post-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.badge-top {
    background: var(--danger-color);
    color: white;
}

.badge-essence {
    background: var(--warning-color);
    color: white;
}

/* ==================== 统计区域 ==================== */
.stats {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item i {
    font-size: 40px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* ==================== 底部 ==================== */
.footer {
    background: var(--text-color);
    color: white;
    padding: 40px 0;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-logo i {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ==================== 表单样式 ==================== */
.form-container {
    max-width: 450px;
    margin: 60px auto;
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-group label .required {
    color: var(--danger-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: border-color 0.3s;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-color);
}

.form-control::placeholder {
    color: #a0aec0;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: var(--danger-color);
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.form-error.show {
    display: block;
}

.form-tips {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.form-tips a {
    color: var(--primary-color);
}

/* ==================== 滑动验证 - 优化版 ==================== */
.slide-verify-container {
    margin-bottom: 20px;
    user-select: none;
    -webkit-user-select: none;
}

.slide-verify-title {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    text-align: center;
    font-weight: 500;
}

.slide-verify-title::before {
    content: '\f132';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 6px;
    color: var(--primary-color);
}

.slide-verify-box {
    position: relative;
    width: 280px;
    height: 160px;
    margin: 0 auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.slide-verify-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-verify-block {
    position: absolute;
    top: 0;
    left: 0;
    cursor: grab;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.slide-verify-block:active {
    cursor: grabbing;
}

.slide-verify-track {
    position: relative;
    width: 280px;
    height: 44px;
    margin: 12px auto 0;
    background: linear-gradient(135deg, #e2e8f0 0%, #f7fafc 100%);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slide-verify-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    transition: background 0.3s ease;
}

.slide-verify-slider:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.slide-verify-slider:active {
    cursor: grabbing;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.slide-verify-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #a0aec0;
    font-size: 14px;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 2px;
}

.slide-verify-text.success {
    color: var(--success-color);
}

/* 滑动验证成功状态 */
.slide-verify-slider.success {
    background: var(--success-color) !important;
}

/* ==================== 验证码输入 ==================== */
.verify-code-group {
    display: flex;
    gap: 10px;
}

.verify-code-group .form-control {
    flex: 1;
}

.verify-code-group .btn {
    white-space: nowrap;
    min-width: 120px;
}

/* ==================== 加载和空状态 ==================== */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

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

.empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ==================== Toast提示 ==================== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: white;
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    min-width: 280px;
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--danger-color);
}

.toast.info {
    border-left: 4px solid var(--info-color);
}

.toast i {
    font-size: 20px;
}

.toast.success i {
    color: var(--success-color);
}

.toast.error i {
    color: var(--danger-color);
}

.toast.info i {
    color: var(--info-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hiding {
    animation: slideOut 0.3s ease forwards;
}

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

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius);
    background: white;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s;
}

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

.pagination .current {
    background: var(--primary-color);
    color: white;
}

.pagination .disabled {
    color: var(--text-light);
    cursor: not-allowed;
}

/* ==================== 帖子页面搜索和筛选 - 优化版 ==================== */
.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.posts-header h1 {
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    background: white;
    padding: 6px;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.filter-tabs a {
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-tabs a:hover {
    color: var(--primary-color);
    background: var(--bg-color);
}

.filter-tabs a.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.search-box {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box input::placeholder {
    color: #a0aec0;
}

.search-box .btn {
    padding: 12px 24px;
    border-radius: 30px;
    white-space: nowrap;
}

.category-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding: 15px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.category-filter a {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    background: var(--bg-color);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-filter a:hover {
    color: var(--primary-color);
    background: #ebf8ff;
    transform: translateY(-1px);
}

.category-filter a.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-filter a:hover {
    color: var(--primary-color);
    background: #ebf8ff;
}

.category-filter a.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

/* ==================== 帖子页面 - 美化版 ==================== */

/* 页面头部横幅 */
.posts-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 60px 0 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.posts-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.posts-hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.posts-hero-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.posts-hero-content h1 i {
    font-size: 42px;
    opacity: 0.9;
}

.posts-hero-content p {
    font-size: 16px;
    opacity: 0.9;
}

.posts-stats {
    display: flex;
    gap: 40px;
}

.posts-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.posts-stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.posts-stat-item i {
    font-size: 28px;
    opacity: 0.9;
}

.posts-stat-item .number {
    font-size: 28px;
    font-weight: 700;
}

.posts-stat-item .label {
    font-size: 13px;
    opacity: 0.8;
}

/* 筛选区域 */
.posts-filter-section {
    padding: 30px 0;
}

/* 搜索框增强版 */
.search-section {
    margin-bottom: 30px;
}

.search-box-enhanced {
    display: flex;
    align-items: center;
    gap: 0;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 6px;
    max-width: 700px;
    margin: 0 auto;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-box-enhanced:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 4px 25px rgba(102, 126, 234, 0.2);
}

.search-box-enhanced .search-icon {
    padding: 0 16px 0 20px;
    color: #a0aec0;
    font-size: 18px;
}

.search-box-enhanced input {
    flex: 1;
    padding: 14px 10px;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
}

.search-box-enhanced input::placeholder {
    color: #a0aec0;
}

.search-box-enhanced .search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box-enhanced .search-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 排序选项卡增强版 */
.filter-tabs-enhanced {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-tabs-enhanced a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 28px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-tabs-enhanced a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.filter-tabs-enhanced a.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

.filter-tabs-enhanced .tab-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.filter-tabs-enhanced a.active .tab-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.filter-tabs-enhanced .tab-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.filter-tabs-enhanced .tab-title {
    font-size: 15px;
    font-weight: 600;
}

.filter-tabs-enhanced .tab-desc {
    font-size: 12px;
    opacity: 0.7;
}

/* 分类区域 */
.category-section {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.category-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.category-label i {
    color: var(--primary-color);
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-color);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-chip:hover {
    background: #ebf8ff;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.category-chip.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.category-chip:not(.active) i {
    color: var(--cat-color, var(--primary-color));
}

/* 帖子列表区域 */
.post-list-section {
    padding-bottom: 40px;
}

.section-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title-wrapper i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.section-title-wrapper h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
}

.post-count-badge {
    padding: 6px 14px;
    background: var(--bg-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.btn-glow {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.btn-glow:hover {
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

/* 加载动画增强版 */
.loading-enhanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-enhanced p {
    font-size: 15px;
}

/* 空状态增强版 */
.empty-enhanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-icon {
    width: 100px;
    height: 100px;
    background: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.empty-icon i {
    font-size: 48px;
    color: #cbd5e0;
}

.empty-enhanced h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.empty-enhanced p {
    font-size: 15px;
    color: var(--text-light);
}

/* 帖子卡片 */
.post-list-enhanced {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.2);
}

.post-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.post-author-enhanced {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-wrapper {
    position: relative;
}

.author-avatar-wrapper img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: var(--warning-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    border: 2px solid white;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.author-level {
    font-size: 12px;
    color: var(--text-light);
    background: var(--bg-color);
    padding: 2px 10px;
    border-radius: 10px;
    width: fit-content;
}

.post-badges {
    display: flex;
    gap: 8px;
}

.badge-enhanced {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-top {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.badge-essence {
    background: linear-gradient(135deg, #feca57 0%, #ff9f43 100%);
    color: white;
}

.post-card-body {
    margin-bottom: 20px;
}

.post-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.5;
}

.post-title a {
    color: var(--text-color);
    transition: color 0.3s;
}

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

.post-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

.post-meta-enhanced {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
}

.meta-item i {
    font-size: 14px;
}

.meta-category {
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    color: var(--cat-color, var(--primary-color));
    font-weight: 500;
}

.post-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
}

/* 分页增强版 */
.pagination-enhanced {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-bottom: 40px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: white;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.page-btn:hover:not(.disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.page-btn.current {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.page-btn.disabled {
    color: #cbd5e0;
    cursor: not-allowed;
}

.page-dots {
    background: transparent;
    box-shadow: none;
    color: var(--text-light);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }
    
    .nav,
    .user-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu.show {
        display: block;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-btns {
        flex-direction: column;
        padding: 0 40px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-card {
        padding: 20px;
    }
    
    .category-card i {
        font-size: 28px;
    }
    
    .stat-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .post-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-author {
        flex-direction: row;
        width: 100%;
    }
    
    .post-meta {
        font-size: 12px;
        gap: 10px;
    }
    
    .form-container {
        margin: 20px;
        padding: 24px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    /* 帖子页面移动端适配 */
    .posts-hero {
        padding: 40px 0 30px;
    }
    
    .posts-hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .posts-hero-content h1 {
        font-size: 26px;
        justify-content: center;
    }
    
    .posts-hero-content h1 i {
        font-size: 32px;
    }
    
    .posts-stats {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }
    
    .posts-stat-item {
        padding: 14px 18px;
        flex: 1;
        max-width: 120px;
    }
    
    .posts-stat-item i {
        font-size: 20px;
    }
    
    .posts-stat-item .number {
        font-size: 20px;
    }
    
    .posts-stat-item .label {
        font-size: 11px;
    }
    
    .search-box-enhanced {
        flex-direction: column;
        border-radius: 20px;
        padding: 12px;
    }
    
    .search-box-enhanced .search-icon {
        display: none;
    }
    
    .search-box-enhanced input {
        width: 100%;
        padding: 12px;
        text-align: center;
    }
    
    .search-box-enhanced .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .filter-tabs-enhanced {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-tabs-enhanced a {
        padding: 12px 20px;
    }
    
    .filter-tabs-enhanced .tab-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .category-section {
        padding: 18px;
    }
    
    .category-chips {
        gap: 8px;
    }
    
    .category-chip {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .section-header-enhanced {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-card {
        padding: 18px;
        border-radius: 16px;
    }
    
    .post-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .post-badges {
        align-self: flex-end;
    }
    
    .post-title {
        font-size: 16px;
    }
    
    .post-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .post-meta-enhanced {
        gap: 12px;
    }
    
    .pagination-enhanced {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .page-btn {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 13px;
    }

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .slide-verify-box,
    .slide-verify-track {
        width: 100%;
        max-width: 280px;
    }
}
