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

body {
    background-color: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #333;
}

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

/* ========== 导航栏样式 ========== */
.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.logo a {
    color: #1a1a1a;
}

.logo a:hover {
    color: #333;
}

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

.nav a {
    color: #666;
    font-size: 15px;
    padding: 5px 0;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: #1a1a1a;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1a1a1a;
}

/* 搜索框 */
.header-search {
    position: relative;
}

.header-search form {
    display: flex;
    align-items: center;
}

.search-input {
    width: 180px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    background: #f5f5f5;
    color: #333;
    font-size: 13px;
    transition: all 0.2s;
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    outline: none;
    border-color: #1a1a1a;
    width: 220px;
    background: #fff;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
}

.search-btn:hover {
    color: #1a1a1a;
}

/* 头部按钮 */
.header-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 18px;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.header-btn:hover {
    color: #1a1a1a;
    background: #f5f5f5;
}

.header-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 消息通知下拉菜单 */
.header-notice-wrap {
    position: relative;
}

.notice-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 160px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

/* 添加连接区域 */
.header-notice-wrap::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.header-notice-wrap:hover .notice-dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notice-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
}

.notice-dropdown a:hover {
    background: #f5f5f5;
    color: #333;
}

.notice-dropdown .layui-icon {
    font-size: 16px;
    color: #666;
}

/* 用户头像和下拉菜单 */
.header-user {
    position: relative;
}

.user-avatar-link {
    display: block;
    padding: 5px;
    margin: -5px;
}

.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.header-avatar:hover {
    border-color: #1a1a1a;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 160px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

/* 添加连接区域，防止鼠标移开时菜单消失 */
.header-user::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

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

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #333;
    font-size: 14px;
}

.user-dropdown a:hover {
    background: #f5f5f5;
    color: #333;
}

.user-dropdown .layui-icon {
    font-size: 16px;
    color: #666;
}

.dropdown-badge {
    margin-left: auto;
    background: #ff4d4f;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* 登录注册按钮 */
.header-login-btn,
.header-register-btn {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

.header-login-btn {
    color: #666;
}

.header-login-btn:hover {
    color: #1a1a1a;
}

.header-register-btn {
    background: #1a1a1a;
    color: #fff;
}

.header-register-btn:hover {
    background: #333;
    color: #fff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    margin-right: 10px;
}

.nav-toggle:hover {
    color: #1a1a1a;
}

/* ========== 主内容区域 ========== */
.main-content {
    flex: 1;
    padding: 20px 0;
}

.main-row {
    display: flex;
    gap: 20px;
}

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

.main-right {
    width: 300px;
    flex-shrink: 0;
}

/* ========== 卡片基础样式 ========== */
.card {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 0;
}

.card-body-padding {
    padding: 20px;
}

/* ========== 按钮样式 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: all 0.2s;
}

.btn:hover {
    border-color: #999;
    color: #333;
}

.btn-primary {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.btn-primary:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

.btn-block {
    display: block;
    width: 100%;
}

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

/* ========== 首页置顶帖子 ========== */
.top-threads {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 12px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.top-thread-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.top-thread-item:last-child {
    border-bottom: none;
}

.top-tag {
    background: #ff4d4f;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}

.top-title {
    color: #333;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-title:hover {
    color: #666;
}

/* ========== 标签页样式 ========== */
.tab-header {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    padding: 0 20px;
}

.tab-item {
    padding: 15px 20px;
    color: #666;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-item:hover {
    color: #333;
}

.tab-item.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
    font-weight: 500;
}

.tab-item .layui-icon {
    font-size: 16px;
}

/* ========== 帖子列表样式 ========== */
.thread-list-body {
    padding: 0;
}

.thread-list-item {
    display: flex;
    gap: 15px;
    padding: 16px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.thread-list-item:last-child {
    border-bottom: none;
}

.thread-list-item:hover {
    background: #fafafa;
}

.thread-author {
    flex-shrink: 0;
}

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

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

.thread-title {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thread-title:hover {
    color: #666;
}

.thread-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 6px;
    font-weight: normal;
    vertical-align: middle;
}

.tag-top {
    background: #ff4d4f;
    color: #fff;
}

.tag-digest {
    background: #faad14;
    color: #fff;
}

.tag-attach {
    color: #666;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.tag-attach svg {
    display: block;
}

.thread-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.thread-meta a {
    color: #666;
}

.thread-meta a:hover {
    color: #333;
}

.meta-author {
    color: #333;
    font-weight: 500;
}

.meta-forum a {
    color: #1890ff;
}

.meta-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.meta-stats .layui-icon {
    font-size: 13px;
    margin-right: 3px;
}

/* ========== 右侧栏样式 ========== */
.sidebar {
    display: block;
}

/* 用户信息卡片 */
.user-info-card {
    padding: 20px;
}

.user-info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

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

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

.user-info-main .user-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.user-info-main .user-group {
    font-size: 12px;
    color: #999;
}

.user-stats-row {
    display: flex;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
    margin-bottom: 15px;
}

.stat-box {
    flex: 1;
    text-align: center;
    border-right: 1px solid #f0f0f0;
}

.stat-box:last-child {
    border-right: none;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.stat-name {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.user-actions {
    margin-top: 15px;
}

/* 游客卡片 */
.guest-card {
    padding: 25px 20px;
    text-align: center;
}

.guest-content h3 {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.guest-content p {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}

.guest-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.guest-actions .btn {
    min-width: 80px;
}

/* 排行榜 */
.ranking-body {
    padding: 10px 0;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    transition: background 0.2s;
}

.ranking-item:hover {
    background: #fafafa;
}

.rank-num {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #999;
    background: #f5f5f5;
    border-radius: 4px;
    flex-shrink: 0;
}

.rank-num.top-1 {
    background: #ffd700;
    color: #fff;
}

.rank-num.top-2 {
    background: #c0c0c0;
    color: #fff;
}

.rank-num.top-3 {
    background: #cd7f32;
    color: #fff;
}

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

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-name {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-name:hover {
    color: #666;
}

.rank-stats {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.rank-stats span {
    margin-right: 10px;
}

.rank-credits {
    font-size: 14px;
    font-weight: 600;
    color: #ff9500;
}

/* 站点统计 */
.stats-card .site-stats {
    display: flex;
    padding: 20px;
}

.stats-card .stat-item {
    flex: 1;
    text-align: center;
}

.stats-card .stat-item .layui-icon {
    font-size: 24px;
    color: #999;
    margin-bottom: 8px;
    display: block;
}

.stats-card .stat-num {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: block;
}

.stats-card .stat-label {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* 友情链接 */
.links-body {
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.link-item {
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
}

.link-item:hover {
    background: #e8e8e8;
    color: #333;
}

/* ========== 旧样式兼容 ========== */
.user-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.user-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    background: #f5f5f5;
}

.user-info {
    margin-left: 15px;
}

.user-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.user-group {
    display: inline-block;
    background: #f5f5f5;
    padding: 2px 10px;
    border-radius: 2px;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.user-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.user-stats .stat-item {
    flex: 1;
}

.user-stats .stat-num {
    font-size: 20px;
    font-weight: 500;
    color: #333;
}

.user-stats .stat-label {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.login-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.login-card h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.login-card p {
    color: #999;
    margin-bottom: 20px;
    font-size: 13px;
}

.login-card .btn {
    margin: 5px;
}

.forum-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.forum-item:last-child {
    border-bottom: none;
}

.forum-item:hover {
    background: #fafafa;
}

.forum-item-left {
    display: flex;
    align-items: center;
}

.forum-icon {
    width: 45px;
    height: 45px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 20px;
    margin-right: 15px;
    overflow: hidden;
}

.forum-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.forum-info h3 {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 500;
}

.forum-info h3 a {
    color: #333;
}

.forum-info h3 a:hover {
    color: #666;
}

.forum-info p {
    margin: 0;
    color: #999;
    font-size: 13px;
}

.forum-stats {
    text-align: right;
    font-size: 12px;
    color: #999;
}

.forum-stats div {
    margin: 2px 0;
}

.thread-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.thread-item:last-child {
    border-bottom: none;
}

.thread-item:hover {
    background: #fafafa;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: #fafafa;
    color: #333;
}

.menu-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #666;
    background: #f5f5f5;
    font-size: 14px;
}

.menu-item:hover .menu-icon {
    color: #333;
}

.menu-text {
    flex: 1;
    font-size: 14px;
}

.menu-badge {
    background: #ff4d4f;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.menu-arrow {
    color: #ccc;
    font-size: 12px;
}

.credits-rule {
    padding: 15px 20px;
    font-size: 13px;
    color: #666;
    line-height: 2;
}

.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 20px;
    color: #999;
    font-size: 13px;
    border-top: 1px solid #e8e8e8;
    background: #fff;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 14px;
}

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

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

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #999;
}

.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
    transition: border-color 0.2s;
}

.form-textarea:focus {
    outline: none;
    border-color: #999;
}

.pagination {
    padding: 16px 0;
    text-align: center;
}

.breadcrumb {
    margin-bottom: 16px;
    font-size: 13px;
    color: #999;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #333;
}

/* 浮动发帖按钮 */
.floating-post-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(26, 26, 26, 0.6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: all 0.3s;
}

.floating-post-btn:hover {
    transform: scale(1.05);
    background: rgba(51, 51, 51, 0.7);
}

.floating-post-btn i {
    font-size: 20px;
}

/* ========== 响应式样式 ========== */
@media (max-width: 991px) {
    .main-row {
        flex-direction: column;
    }
    
    .main-right {
        width: 100%;
    }
    
    /* 移动端隐藏右侧栏 */
    .sidebar {
        display: none;
    }
    
    /* 移动端显示浮动发帖按钮 */
    .floating-post-btn {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 10px 15px;
        gap: 0;
        border-bottom: 1px solid #e8e8e8;
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    }
    
    .nav.show {
        display: flex;
    }
    
    .nav a {
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        color: #666;
    }
    
    .nav a:last-child {
        border-bottom: none;
    }
    
    .nav a:hover,
    .nav a.active {
        color: #1a1a1a;
    }
    
    .header .container {
        position: relative;
    }
    
    .header-search {
        display: none;
    }
    
    .header-btn[title="发帖"] {
        display: none;
    }
}

@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    .header-left {
        gap: 15px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .card {
        border-radius: 0;
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .card-header {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .tab-header {
        padding: 0 10px;
    }
    
    .tab-item {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .thread-list-item {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .author-avatar {
        width: 36px;
        height: 36px;
    }
    
    .thread-title {
        font-size: 14px;
    }
    
    .thread-meta {
        font-size: 12px;
        gap: 8px;
    }
    
    .meta-stats {
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
    }
    
    .top-threads {
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 0;
        padding: 10px 15px;
    }
    
    .forum-item {
        padding: 12px 15px;
    }
    
    .forum-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-right: 12px;
    }
    
    .forum-info h3 {
        font-size: 14px;
    }
    
    .forum-stats {
        display: none;
    }
    
    .thread-item {
        padding: 12px 15px;
    }
    
    .user-card {
        padding: 15px;
    }
    
    .user-avatar {
        width: 50px;
        height: 50px;
    }
    
    .user-name {
        font-size: 15px;
    }
    
    .stat-num {
        font-size: 18px;
    }
    
    .menu-item {
        padding: 10px 15px;
    }
    
    .credits-rule {
        padding: 12px 15px;
        font-size: 12px;
    }
}

/* ========== 搜索样式 ========== */
.search-form-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #e1e4e8;
}

.search-form {
    width: 100%;
}

.search-input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: stretch;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.search-input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.search-select {
    padding: 12px 40px 12px 16px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    font-size: 15px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    min-width: 160px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.search-select:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.search-select:hover {
    border-color: #c0c4cc;
}

.search-count {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    margin-left: 10px;
}

.search-results {
    margin-top: 16px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.search-result-item {
    padding: 24px 28px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #fafbfc;
    transform: translateX(4px);
}

/* 帖子底部时间样式 */
.post-footer-meta {
    text-align: right;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #999;
}

.post-footer-meta .footer-meta-item {
    margin-left: 15px;
}

.post-footer-meta .footer-meta-item.edited {
    color: #bbb;
}

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

.result-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.4;
}

.result-title:hover {
    color: #1890ff;
}

.result-title .highlight {
    background: #fff7e6;
    color: #d46b08;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

.result-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 13px;
    color: #8c8c8c;
    display: flex;
    align-items: center;
}

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

.result-content {
    font-size: 14px;
    color: #595959;
    line-height: 1.8;
    padding: 12px 16px;
    background: #f6f8fa;
    border-radius: 8px;
    border-left: 3px solid #e1e4e8;
}

.result-content .highlight {
    background: #fff7e6;
    color: #d46b08;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 500;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 8px 0;
    font-size: 13px;
    color: #666;
    border-bottom: 1px dashed #e8e8e8;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list li:before {
    content: "•";
    color: #1890ff;
    margin-right: 8px;
}

.empty-tip {
    font-size: 13px;
    color: #999;
    margin-top: 10px;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.tag-success {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.tag-warning {
    background: #fffbe6;
    color: #faad14;
    border: 1px solid #ffe58f;
}

.tag-error {
    background: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

.tag-primary {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

/* ========== @用户链接样式 ========== */
.mention-link {
    color: #1E9FFF;
    font-weight: 500;
    text-decoration: none;
    background: #e6f7ff;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.mention-link:hover {
    background: #1E9FFF;
    color: #fff;
}

/* ========== 统计数字链接样式 ========== */
.stat-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.2s;
}

.stat-link:hover {
    color: #1E9FFF;
}

.stat-link:hover .info-stat-num {
    color: #1E9FFF;
}

/* ========== 分页样式 ========== */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.page-info {
    color: #666;
    font-size: 14px;
}

.page-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: all 0.2s;
    text-decoration: none;
}

.page-link:hover {
    border-color: #333;
    color: #000;
    background: #f5f5f5;
}

.page-link.current {
    background: #333;
    border-color: #333;
    color: #fff;
    cursor: default;
}

.page-ellipsis {
    color: #666;
    padding: 0 5px;
}

/* 移动端分页样式 */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .page-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}
