* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: '微软雅黑', Arial, sans-serif;
    background-color: #f5f5f5;
    line-height: 1.6;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
}

/* 头部导航 */
.header {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    font-size: 18px;
    font-weight: normal;
}

.header .user-info {
    font-size: 14px;
}

.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

/* 页面内容 */
.page {
    padding: 20px;
    min-height: calc(100vh - 140px);
    padding-bottom: 80px;
}

/* 首页样式 */
.announcement {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.announcement h3 {
    color: #856404;
    margin-bottom: 10px;
    font-size: 16px;
}

.weather-card {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.weather-temp {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.price-section {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.price-item:last-child {
    border-bottom: none;
}

.price-trend {
    color: #e74c3c;
    font-weight: bold;
}

.price-trend.up::before {
    content: "↗ ";
}

.price-trend.down::before {
    content: "↘ ";
    color: #27ae60;
}

/* 快速功能 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.quick-btn {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.quick-btn:hover {
    transform: translateY(-2px);
}

.quick-btn .icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

/* 任务列表 */
.task-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.task-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.task-item:hover {
    background-color: #f8f9fa;
}

.task-item:last-child {
    border-bottom: none;
}

.task-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.task-info {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.task-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 16px;
}

.task-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
}

.status-published {
    background: #d4edda;
    color: #155724;
}

.status-accepted {
    background: #cce5ff;
    color: #004085;
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.btn:hover {
    background: #45a049;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-small {
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
    margin: 5px;
}

/* 用户信息页面 */
.user-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: #4CAF50;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.credit-score {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.menu-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: #f8f9fa;
}

.menu-item:last-child {
    border-bottom: none;
}

/* 信息卡片 */
.info-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
    font-size: 14px;
}

.info-value {
    color: #333;
    font-weight: bold;
}

/* 农机卡片 */
.machine-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.machine-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.machine-name {
    font-weight: bold;
    font-size: 16px;
}

.machine-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.status-available {
    background: #d4edda;
    color: #155724;
}

.status-busy {
    background: #fff3cd;
    color: #856404;
}

.status-maintenance {
    background: #f8d7da;
    color: #721c24;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.nav-item {
    text-align: center;
    cursor: pointer;
    padding: 5px;
    color: #666;
    transition: color 0.2s;
    flex: 1;
}

.nav-item.active {
    color: #4CAF50;
}

.nav-item .icon {
    font-size: 24px;
    display: block;
    margin-bottom: 2px;
}

.nav-item .text {
    font-size: 12px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px;
    max-width: 90%;
    max-height: 80%;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

/* 搜索框 */
.search-box {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

/* 筛选标签 */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-tag {
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.filter-tag.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* 认证进度概览 */
.certification-overview {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.overview-title {
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.overview-progress {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.progress-item {
    flex: 1;
    position: relative;
}

.progress-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 16px;
    color: white;
}

.progress-icon.completed {
    background: #4CAF50;
}

.progress-icon.pending {
    background: #6c757d;
}

.progress-icon.processing {
    background: #ff9800;
}

.progress-line {
    position: absolute;
    top: 15px;
    left: 100%;
    width: 100%;
    height: 3px;
    background: #e9ecef;
    z-index: -1;
}

.progress-line.completed {
    background: #4CAF50;
}

.progress-line.pending {
    background: #e9ecef;
}

.progress-line.processing {
    background: linear-gradient(to right, #4CAF50, #ff9800);
}

.progress-text {
    text-align: center;
    font-size: 12px;
    color: #666;
}

/* 标签页样式增强 */
.tabs {
    display: flex;
    background: white;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab.active {
    color: #4CAF50;
    font-weight: bold;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: #4CAF50;
    border-radius: 3px 3px 0 0;
}

/* 认证进度条 */
.cert-progress-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.cert-progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.cert-progress-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease;
}

.cert-progress-stages {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* 文件上传和预览 */
.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8f9fa;
    margin-bottom: 15px;
}

.file-upload-area:hover {
    border-color: #4CAF50;
    background: #f0f7f0;
}

.file-upload-input {
    display: none;
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.file-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.file-preview img,
.file-preview .pdf-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview .pdf-icon {
    background: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1976d2;
    font-size: 40px;
}

.remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,0,0,0.8);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

/* 帮助信息模态框 */
.help-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.help-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px;
    max-width: 90%;
    max-height: 80%;
    overflow-y: auto;
}

/* 表单验证错误提示 */
.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #e74c3c;
}

/* 倒计时按钮 */
.btn-countdown {
    background: #6c757d;
    cursor: not-allowed;
}

/* 认证材料详情模态框 */
.material-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.material-details-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.material-details-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px;
    max-width: 90%;
    max-height: 80%;
    overflow-y: auto;
}

.material-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.material-image {
    max-width: 100%;
    border-radius: 6px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }
    
    .bottom-nav {
        max-width: 100%;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tab {
        padding: 10px 5px;
        font-size: 14px;
    }
}