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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 750px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: #f8f9fa;
    position: relative;
    padding-bottom: 45px;
    overflow-x: hidden;
}

/* 顶部导航栏 */
.header {
    background: #fff;
    color: #000;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 18px;
    font-weight: 500;
    flex: 1;
    text-align: center;
}

.header .back-btn {
    font-size: 20px;
    cursor: pointer;
    color: white;
    text-decoration: none;
}

.header .menu-btn {
    font-size: 20px;
    cursor: pointer;
}

/* 底部导航栏 */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 750px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #e0e0e0;
    display: flex;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
    border-radius: 16px 16px 0 0;
}

.tab-item {
    flex: 1;
    text-align: center;
    cursor: pointer;
    color: #666;
    font-size: 13px;
    padding: 4px 8px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tab-icon {
    font-size: 18px;
    margin-bottom: 2px;
    font-weight: normal;
    color: #666;
}

.tab-item.active {
    color: #333;
    font-weight: 500;
}

.tab-item.active .tab-icon {
    color: #333;
}

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

/* 页面内容区域 */
.page-content {
    padding: 20px;
    padding-top: 30px;
    padding-bottom: 70px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* 表单样式 */
.form-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

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

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    background: #fff;
    color: #333;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #999;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

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

.form-hint {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* 图片上传区域 */
.upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.upload-area:hover {
    border-color: #999;
    background-color: #fafafa;
}

.upload-area .upload-icon {
    font-size: 40px;
    color: #999;
    margin-bottom: 10px;
}

.upload-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    max-width: 100%;
    overflow: hidden;
}

.upload-images .image-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.upload-images .image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-images .delete-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #999;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: #333;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.submit-btn:hover {
    background: #000;
    color: white;
    margin-top: 20px;
}

/* 投诉卡片 */
.complaint-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
}

.complaint-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.complaint-card .status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    border: none;
}

.complaint-card .status-badge.pending {
    background: #f5f5f5;
    color: #666;
}

.complaint-card .status-badge.processed {
    background: #333;
    color: white;
}

.complaint-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.complaint-info span {
    margin-right: 15px;
}

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

.complaint-content {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.complaint-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.complaint-images img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s;
}

.complaint-images img:hover {
    transform: scale(1.05);
}

.reply-box {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 12px;
    border: none;
    margin-top: 15px;
}

.reply-box .reply-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
}

.reply-box .reply-content {
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .empty-icon {
    font-size: 60px;
    color: #ccc;
    margin-bottom: 15px;
}

.empty-state .empty-text {
    font-size: 14px;
    color: #999;
}

/* 公示台标题 */
.public-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 30px 20px 20px 20px;
    padding: 24px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: calc(100% - 40px);
    box-sizing: border-box;
}

/* 加载更多 */
.load-more {
    text-align: center;
    padding: 15px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more:hover {
    color: #333;
    background: rgba(51, 51, 51, 0.05);
    border-radius: 8px;
}

/* 响应式 */
@media (max-width: 750px) {
    .container {
        max-width: 100%;
    }
}
