* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
    line-height: 1.5;
}

/* 固定宽度容器 - 手机自适应 */
.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 头部 - 固定位置不飘移 */
.header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-phone {
    font-size: 12px;
    color: #6b7280;
    font-weight: normal;
}

.nav-links a {
    color: #4b5563;
    text-decoration: none;
    margin-left: 16px;
    font-size: 14px;
}

.nav-links a:hover {
    color: #059669;
}

/* 搜索框 */
.search-box {
    background: #ffffff;
    margin-top: 12px;
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 8px 0;
}

.search-box button {
    background: #059669;
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

/* 分类导航 */
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.category-item {
    background: white;
    padding: 12px 0;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    font-size: 13px;
    width: calc(33.33% - 8px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.category-item:hover {
    background: #059669;
    color: white;
    transform: translateY(-2px);
}

/* 信息卡片 */
.post-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.post-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.post-title:hover {
    color: #059669;
}

.post-desc {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-price {
    color: #f59e0b;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #9ca3af;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 发布按钮 - 固定悬浮 */
.post-fixed-btn {
    position: fixed;
    bottom: 24px;
    right: calc(50% - 300px);
    background: #059669;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(5,150,105,0.4);
    z-index: 99;
}

@media (max-width: 640px) {
    .post-fixed-btn {
        right: 16px;
    }
}

/* 表单样式 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #059669;
}

.btn-primary {
    background: #059669;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
}

.btn-primary:hover {
    background: #047857;
}

/* 页脚 */
.footer {
    background: white;
    padding: 24px 16px;
    margin-top: 32px;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    border-top: 1px solid #f3f4f6;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

/* 提示信息 */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}