/* 头部样式 */
.header {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 10;
}

.back-button {
    text-decoration: none;
    color: #333;
    font-size: 22px;
    margin-right: 15px;
}

.header h1 {
    font-size: 18px;
    margin: 0;
    flex-grow: 1;
    text-align: center;
    padding-right: 30px; /* 为了平衡返回按钮的空间 */
}

/* 主内容区样式 */
main {
    padding-bottom: 30px; /* 增加底部内边距，确保内容完全显示 */
    min-height: calc(100vh - 60px); /* 设置最小高度，减去头部高度 */
}

/* 搜索区域样式 */
.search-section {
    padding: 15px;
    background-color: #f8f8f8;
}

.search-box {
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.search-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
}

/* 报修列表样式 */
.repair-list {
    padding: 10px 15px;
}

.repair-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
}

.repair-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.applicant-name {
    font-weight: bold;
    font-size: 16px;
}

.repair-status {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}

.status-completed {
    background-color: #e6f7ee;
    color: #2ecc71;
}

.status-processing {
    background-color: #e6f0f7;
    color: #3498db;
}

.repair-info {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.repair-description {
    margin-top: 10px;
    margin-bottom: 15px;
    padding-top: 10px;
    border-top: 1px dashed #eaeaea;
    font-size: 14px;
    color: #555;
}

/* 操作按钮样式 */
.repair-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.view-detail-btn, .reapply-btn {
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 13px;
    border: none;
    cursor: pointer;
}

.view-detail-btn {
    background-color: #f0f0f0;
    color: #555;
    flex-grow: 1;
    margin-right: 10px;
}

.reapply-btn {
    background-color: #3498db;
    color: white;
    flex-grow: 1;
}

/* 加载更多按钮 */
.load-more {
    text-align: center;
    padding: 15px;
    color: #3498db;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px; /* 增加底部间距 */
}

/* 详情弹窗样式 */
.detail-modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
}

.close-button {
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.detail-item {
    margin-bottom: 15px;
}

.detail-label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #666;
}

.detail-value {
    color: #333;
}

.modal-footer {
    padding: 15px;
    border-top: 1px solid #eaeaea;
    text-align: center;
}

.reapply-button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
}

/* 响应式样式 */
@media (max-width: 480px) {
    .modal-content {
        margin: 15% auto;
        width: 95%;
    }
} 