  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #2d3e50;
    line-height: 1.5;
    padding-bottom: 80px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========= 布局 ========= */
.main-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 992px) {
    .main-layout {
        flex-direction: row;
        align-items: flex-start;
    }
    .left-column {
        flex: 2.8;
        min-width: 0;
    }
    .right-column {
        flex: 1.1;
        position: sticky;
        top: 80px;
    }
}

/* ========= 头部 - 单行布局 ========= */
.top-bar {
    background: rgba(255, 255, 245, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #ffefdd;
    position: sticky;
    top: 0;
    z-index: 999;
}

.top-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}

/* Logo区域 */
.logo-area {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-shrink: 0;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e65c1e, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.slogan {
    font-size: 0.6rem;
    background: #fff0e0;
    color: #c2410c;
    padding: 2px 8px;
    border-radius: 40px;
    display: none;
}

@media (min-width: 480px) {
    .slogan { display: inline-block; }
}

/* PC端导航栏 */
.desktop-nav {
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-item {
    background: white;
    padding: 6px 18px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.7rem;
    border: 1px solid #ffe0bf;
    color: #78481a;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
    white-space: nowrap;
}

.nav-item.active {
    background: #f97316;
    color: white;
    border-color: #f97316;
}

/* 右侧按钮区 */
.header-actions {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.icon-btn {
    background: #fef7e6;
    width: 34px;
    height: 34px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #f97316;
    font-size: 1rem;
    border: 1px solid #ffe0bf;
    transition: 0.2s;
}

.icon-btn:active {
    transform: scale(0.95);
}

/* 发布按钮 */
.publish-btn {
    background: #f97316 !important;
    color: white !important;
    gap: 4px;
    font-weight: 500;
    width: auto !important;
    padding: 0 12px !important;
    font-size: 0.75rem !important;
    border: none !important;
}

/* 发布菜单 */
.publish-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 260px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid #eee5dc;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    transform: translateY(-8px);
    margin-top: 8px;
}

.publish-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.publish-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    font-weight: 500;
    font-size: 0.8rem;
    color: #333;
    border-bottom: 1px solid #f0e6dc;
    background: #fff;
    border-radius: 16px 16px 0 0;
}

.menu-close {
    cursor: pointer;
    font-size: 0.9rem;
    color: #999;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.menu-close:active {
    background: #f5f0eb;
}

.publish-menu-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 10px 6px;
    gap: 2px;
    max-height: 340px;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    color: #4a4a4a;
    text-decoration: none;
    font-size: 0.7rem;
    border-radius: 10px;
    transition: background 0.15s;
}

.menu-item:active {
    background: #f8f3ed;
}

.publish-menu-list::-webkit-scrollbar {
    width: 4px;
}

.publish-menu-list::-webkit-scrollbar-track {
    background: #f0e6dc;
    border-radius: 4px;
}

.publish-menu-list::-webkit-scrollbar-thumb {
    background: #f97316;
    border-radius: 4px;
}

/* ========= 移动端适配 ========= */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .fab-container {
        display: block;
    }
}

@media (min-width: 769px) {
    .fab-container {
        display: none;
    }
}

/* ========= 帖子卡片 - PC端稍大 ========= */
.post-item {
    display: flex;
    gap: 14px;
    background: white;
    border-radius: 24px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #faeedf;
    cursor: pointer;
    transition: 0.2s;
}

.post-item:active {
    transform: scale(0.99);
}

.post-item.sticky-post {
    background: #fffaf5;
    border-left: 3px solid #f97316;
}



.post-thumb-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.post-price {
    font-size: 16px;
    font-weight: 700;
    color: #f97316;
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
}

.post-thumb {
    width: 130px;
    flex-shrink: 0;
}

/* 替换为新的缩略图样式 */
.feed-card-cover {
    width: 100%;
    height: 95px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
}

.feed-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.feed-card-cover:hover img {
    transform: scale(1.02);
}



.post-content {
    flex: 1;
    min-width: 0;
}

.post-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c3e4e;
    line-height: 1.4;
}

.sticky-badge {
    display: inline-block;
    background: #f97316;
    color: white;
    font-size: 0.65rem;
    padding: 2px 10px;
    border-radius: 30px;
    font-weight: 500;
    white-space: nowrap;
    margin-right: 0px;
    position: relative;
    top: -2px;  /* 向上移动1px，负值向上 */
}

.post-desc {
    font-size: 0.75rem;
    color: #7e6b52;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    gap: 16px;
    font-size: 0.7rem;
    color: #b28b5e;
    flex-wrap: wrap;
}

/* 移动端帖子卡片 */
@media (max-width: 768px) {
    .post-item {
        padding: 10px;
        gap: 12px;
        margin-bottom: 12px;
    }
    .post-title {
        font-size: 0.88rem;
        margin-bottom: 4px;
    }
    .sticky-badge {
        font-size: 0.55rem;
        padding: 2px 6px;
        margin-right: 0px;
    }
    .post-desc {
        font-size: 0.65rem;
        margin-bottom: 4px;
    }
    .post-meta {
        font-size: 0.6rem;
        gap: 10px;
    }
    .post-thumb {
        width: 75px;
        height: 75px;
    }
}

/* ========= 右侧模块 ========= */
.right-module {
    background: white;
    border-radius: 24px;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid #ffedd5;
}

.module-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #c2410c;
    border-left: 3px solid #f97316;
    padding-left: 10px;
}

.hot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #ffeee0;
    gap: 8px;
}

.hot-rank {
    font-weight: 800;
    color: #f97316;
    width: 22px;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.hot-title {
    flex: 1;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-reply {
    font-size: 0.6rem;
    color: #b98f64;
    flex-shrink: 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 6px;
}

.service-tag {
    background: #fffaf2;
    padding: 8px 4px;
    text-align: center;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #b45309;
    border: 1px solid #ffe0bf;
    cursor: pointer;
    transition: 0.2s;
}

.service-tag:active {
    background: #f97316;
    color: white;
}

.right-module .post-item {
    padding: 6px 0;
    gap: 8px;
    margin-bottom: 8px;
}

.right-module .post-thumb {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========= 底部导航 ========= */
.bottom-tab {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 245, 0.96);
    backdrop-filter: blur(20px);
    border-top: 1px solid #ffedd5;
    display: flex;
    justify-content: space-around;
    padding: 8px 20px 20px;
    z-index: 100;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 0.65rem;
    opacity: 0.6;
    font-weight: 500;
}

.tab-item.active {
    opacity: 1;
    color: #f97316;
}

/* ========= 悬浮菜单（移动端） ========= */
.fab-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 200;
}

.fab-btn {
    background: #f97316;
    width: 52px;
    height: 52px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4);
    cursor: pointer;
    color: white;
    transition: 0.2s;
    border: none;
}

.fab-btn:active {
    transform: scale(0.96);
}

.nav-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: rgba(255, 255, 245, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 10px 6px;
    width: 210px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.3);
    transition: all 0.2s ease;
    transform: scale(0.9);
    opacity: 0;
    visibility: hidden;
    transform-origin: bottom right;
}

.nav-menu.show {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.nav-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 60px;
    font-weight: 500;
    color: #4b3b2c;
    transition: 0.2s;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.75rem;
}

.nav-menu-item:active {
    background: #fff0e0;
}

.nav-menu-item.active {
    background: #f97316;
    color: white;
}

.menu-group-title {
    padding: 6px 14px 2px;
    font-size: 0.65rem;
    color: #f97316;
    font-weight: 600;
}

.nav-menu::-webkit-scrollbar {
    width: 4px;
}

.nav-menu::-webkit-scrollbar-track {
    background: #ffe0bf;
    border-radius: 4px;
}

.nav-menu::-webkit-scrollbar-thumb {
    background: #f97316;
    border-radius: 4px;
}

/* ========= 底部版权 ========= */
.footer {
    background: #f8f5f0;
    border-top: 1px solid #ffe0bf;
    padding: 20px 16px 100px;
    margin-top: 20px;
    font-size: 0.6rem;
    color: #8b7355;
    line-height: 1.6;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-line {
    margin-bottom: 6px;
    word-break: break-word;
}

.footer-copyright {
    margin-top: 10px;
    padding-top: 6px;
    border-top: 1px solid #ffe0bf;
    color: #a0825a;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 40px;
    flex-wrap: wrap;
}

.page-btn {
    background: white;
    border: 1px solid #ffe0bf;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.7rem;
    color: #78481a;
    cursor: pointer;
}

.page-btn.active {
    background: #f97316;
    color: white;
    border-color: #f97316;
}

/* 响应式微调 */
@media (max-width: 480px) {
    .publish-menu {
        width: 250px;
        right: -5px;
    }
}


/* 消息按钮容器 - 相对定位 */
.message-btn {
    position: relative;
}

/* 消息数字角标 */
.msg-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f97316;
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid white;
}

/* 有消息时显示红色 */
.msg-badge.has-msg {
    background: #ef4444;
}
/* 用户头像按钮 - 覆盖原有图标按钮样式 */
.user-avatar-btn {
    padding: 0 !important;
    overflow: hidden;
    background: #f0e6dc !important;
    border: 1px solid #ffe0bf !important;
}

.user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 未登录时的用户图标 */
.user-icon {
    background: #fef7e6;
    border: 1px solid #ffe0bf;
}

/* 筛选卡片样式 */
.filter-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    padding: 12px 16px;
    margin-top: 25px;
}
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 12px;
}
.filter-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #f97316;
    font-size: 0.95rem;
}
.current-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #fff7f0;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
}
.filters-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.summary-text {
    color: #666;
}
.filter-tags-container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.filter-tag {
    background: #f97316;
    color: white;
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.filter-tag .remove-filter {
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1;
}
.clear-all-btn {
    color: #f97316;
    text-decoration: none;
    font-size: 0.7rem;
    background: #fff0e6;
    padding: 3px 10px;
    border-radius: 20px;
}
.clear-all-btn:hover { background: #ffe0d0; }

.cation-middle {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.filter-category {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px dashed #f0f0f0;
    padding-bottom: 8px;
}
.filter-category:last-child {
    border-bottom: none;
}
.category-header {
    width: 70px;
    flex-shrink: 0;
}
.category-title {
    font-weight: 600;
    font-size: 0.8rem;
    color: #555;
}
.category-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.filter-option {
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #444;
}
.filter-option.active {
    background: #f97316;
    color: white;
}
.filter-option:hover {
    background: #ffdec2;
}
@media (max-width: 768px) {
    .filter-card { padding: 10px; margin-top: 0; }
    .filter-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .current-filters { width: 100%; justify-content: space-between; }
    .category-header { width: auto; margin-bottom: 3px; }
    .filter-category { flex-direction: column; align-items: flex-start; }
}
/*列表内标签*/
.info-tag1 {
    background: #ff0000;
    padding: 2px 8px;
    border-radius: 16px;
    font-size: 12px;
    color: #555;
}
.info-tag2 {
    background: #ff0000;
    padding: 2px 8px;
    border-radius: 16px;
    font-size: 12px;
    color: #555;
}