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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

.container {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 15px;
}

.header {
    background: linear-gradient(135deg, #07c160 0%, #10b760 100%);
    color: white;
    padding: 20px 15px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    font-size: 20px;
    font-weight: 600;
}

.header .back-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.card {
    background: white;
    border-radius: 12px;
    margin: 15px 0;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #07c160;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #07c160 0%, #10b760 100%);
    color: white;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-disabled {
    background: #ccc;
    cursor: not-allowed;
}

.price-info {
    background: #f0f9f4;
    border: 1px solid #d4efe1;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.price-item:not(:last-child) {
    border-bottom: 1px solid #d4efe1;
}

.price-label {
    color: #666;
}

.price-value {
    font-weight: 600;
    color: #07c160;
}

.total-price {
    font-size: 18px;
    color: #ff5500;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.service-item {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.service-item.active {
    background: #e8f7ed;
    border-color: #07c160;
}

.service-item .icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.service-item .name {
    font-size: 12px;
    color: #666;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.status-0 { background: #f5f5f5; color: #999; }
.status-1 { background: #fff7e6; color: #fa8c16; }
.status-2 { background: #f6ffed; color: #52c41a; }
.status-3 { background: #fff1f0; color: #ff4d4f; }

.miniapp-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.miniapp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.miniapp-name {
    font-size: 16px;
    font-weight: 600;
}

.miniapp-info {
    font-size: 12px;
    color: #999;
}

.step-list {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-item::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 0;
    width: 50%;
    height: 2px;
    background: #e5e5e5;
}

.step-item:last-child::after {
    display: none;
}

.step-item.active .step-icon {
    background: #07c160;
    color: white;
}

.step-item.completed .step-icon {
    background: #07c160;
    color: white;
}

.step-item.completed::after {
    background: #07c160;
}

.step-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e5e5e5;
    color: #999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 12px;
}

.step-name {
    font-size: 12px;
    color: #666;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #07c160;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state .icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    z-index: 9999;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 80%;
    max-width: 350px;
    padding: 25px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.modal-btn {
    display: flex;
    gap: 15px;
}

.modal-btn .btn {
    flex: 1;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    margin: 15px 0;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f0f0f0;
    margin-right: 15px;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-phone {
    font-size: 14px;
    color: #999;
}

.nav-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 15px 0;
}

.nav-item {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-item:active {
    background: #e5e5e5;
}

.nav-item .icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.nav-item .text {
    font-size: 12px;
    color: #666;
}

.tips {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
    font-size: 12px;
    color: #ad6800;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child {
    border-bottom: none;
}

.order-info {
    flex: 1;
}

.order-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.order-meta {
    font-size: 12px;
    color: #999;
}

.order-amount {
    font-size: 16px;
    font-weight: 600;
    color: #ff5500;
}
