.ph-app { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, -apple-system, sans-serif; }
.ph-app body { background: #f5f5f5; padding-bottom: 70px; }
.ph-scan-section { padding: 15px; background: #fff; margin-bottom: 10px; }
.ph-scan-box { display: flex; gap: 10px; margin-bottom: 10px; }
.ph-express-input { flex: 1; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 16px; }
.ph-scan-btn { padding: 12px 20px; background: #1890ff; color: #fff; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; }
.ph-query-btn { width: 100%; padding: 14px; background: #52c41a; color: #fff; border: none; border-radius: 6px; font-size: 16px; cursor: pointer; }
.ph-query-btn:disabled { background: #d9d9d9; color: #999; }
.ph-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: 1000; }
.ph-modal-content { background: #fff; border-radius: 12px; width: 90%; max-width: 400px; overflow: hidden; }
.ph-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid #eee; font-size: 16px; font-weight: 500; }
.ph-close-btn { font-size: 24px; color: #999; cursor: pointer; }
.ph-scan-result-input { width: calc(100% - 30px); margin: 10px 15px; padding: 12px; font-size: 16px; border: 1px solid #ddd; border-radius: 8px; background: #f5f5f5; }
.ph-reader { width: calc(100% - 30px); height: 300px; margin: 0 15px; background: #000; border-radius: 12px; overflow: hidden; }
.ph-reader video { width: 100%; height: 100%; object-fit: cover; }
.ph-scan-status { text-align: center; padding: 12px; color: #8e8e93; font-size: 14px; }
.ph-loading { display: flex; flex-direction: column; align-items: center; padding: 50px; }
.ph-spinner { width: 40px; height: 40px; border: 3px solid #f5f5f5; border-top-color: #1890ff; border-radius: 50%; animation: ph-spin 1s linear infinite; }
@keyframes ph-spin { to { transform: rotate(360deg); } }
.ph-loading p { margin-top: 15px; color: #999; }
.ph-order-list { }
.ph-order-card { background: #fff; border-radius: 8px; border: 2px solid blue; margin-bottom: 15px; }
.ph-order-header { padding: 15px; }
.ph-order-row { display: flex; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.ph-order-row .ph-label { width: 80px; color: #666; flex-shrink: 0; }
.ph-order-row .ph-value { flex: 1; word-break: break-all; }
.ph-serial { justify-content: center; padding: 8px 0; border-bottom: 2px solid #1890ff; margin-bottom: 5px; }
.ph-serial-num { font-size: 24px; font-weight: bold; color: #1890ff; }
.ph-serial-text { font-size: 14px; color: #999; }
.ph-status-tag { padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.ph-status-unsigned { background: #fff7e6; color: #fa8c16; }
.ph-status-signed { background: #f6ffed; color: #52c41a; }
.ph-service-list { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ph-service-item { display: flex; align-items: flex-start; gap: 8px; }
.ph-service-imgs { display: flex; flex-wrap: wrap; gap: 5px; }
.ph-service-img { width: 40px; height: 40px; max-width: 180px; max-height: 200px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.ph-service-info { display: flex; align-items: center; gap: 5px; }
.ph-service-name { font-size: 13px; color: #333; }
.ph-service-num { font-size: 12px; color: #999; }
.ph-goods-section { padding: 15px; border-top: 8px solid #f5f5f5; }
.ph-goods-title { font-weight: 500; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #eee; font-size: 14px; }
.ph-goods-list { width: 100%; }
.ph-goods-item { display: flex; padding: 12px 0; border-bottom: 1px solid #f0f0f0; align-items: flex-start; }
.ph-goods-item:last-child { border-bottom: none; }
.ph-goods-img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; margin-right: 12px; flex-shrink: 0; background: #f5f5f5; }
.ph-goods-detail { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ph-goods-name { font-size: 14px; font-weight: 500; color: #333; margin-bottom: 6px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ph-goods-sku { font-size: 12px; color: #999; margin-bottom: 4px; line-height: 1.4; }
.ph-goods-num { font-size: 13px; color: #666; font-weight: 500; margin-top: auto; }
.ph-sign-section { padding: 15px; border-top: 8px solid #f5f5f5; }
.ph-sign-btn { width: 100%; padding: 14px; background: #1890ff; color: #fff; border: none; border-radius: 6px; font-size: 16px; cursor: pointer; }
.ph-photo-preview { margin-bottom: 15px; }
.ph-preview-title { font-size: 14px; color: #666; margin-bottom: 10px; }
.ph-preview-list { display: flex; flex-wrap: wrap; gap: 10px; }
.ph-preview-item { position: relative; width: 80px; height: 80px; cursor: pointer; }
.ph-preview-item > div { width: 100%; height: 100%; cursor: pointer; }
.ph-preview-item img { width: 100%; height: 100%; max-width: 180px; max-height: 200px; object-fit: cover; border-radius: 4px; }
.ph-remove-btn { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; background: #ff4d4f; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; z-index: 10; }
.ph-add-more { width: 80px; height: 80px; border: 2px dashed #ddd; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #999; cursor: pointer; }
.ph-add-more span:first-child { font-size: 24px; }
.ph-confirm-sign-btn { width: 100%; padding: 14px; background: #52c41a; color: #fff; border: none; border-radius: 6px; font-size: 16px; cursor: pointer; }
.ph-loading-more { display: flex; flex-direction: column; align-items: center; padding: 20px; }
.ph-loading-more .ph-spinner { width: 24px; height: 24px; border: 3px solid #f5f5f5; border-top-color: #1890ff; border-radius: 50%; animation: ph-spin 1s linear infinite; }
.ph-loading-more p { margin-top: 8px; color: #999; font-size: 12px; }
.ph-no-more { text-align: center; padding: 15px; color: #999; font-size: 12px; }
.ph-no-order { text-align: center; padding: 50px; color: #999; }
.ph-form-modal { padding-bottom: 15px; }
.ph-form-group { padding: 10px 15px; }
.ph-form-group label { display: block; margin-bottom: 5px; font-size: 14px; color: #666; }
.ph-form-group .ph-required { color: #ff4d4f; }
.ph-form-group input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 16px; }
.ph-submit-btn { width: calc(100% - 30px); margin: 10px 15px 0; padding: 12px; background: #52c41a; color: #fff; border: none; border-radius: 6px; font-size: 16px; cursor: pointer; }
.ph-submit-btn:disabled { background: #d9d9d9; }
.ph-sign-only-btn { background: #1890ff; margin-top: 5px; }
.ph-toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 15px 30px; background: rgba(0,0,0,0.75); color: #fff; border-radius: 6px; font-size: 14px; z-index: 2000; }
.ph-toast.ph-error { background: rgba(255,77,79,0.9); }
.ph-toast.ph-success { background: rgba(82,196,26,0.9); }
.ph-tongbu-toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 15px 30px; background: rgba(0,0,0,0.75); color: #fff; border-radius: 6px; font-size: 14px; z-index: 2000; }
.ph-tongbu-toast.ph-error { background: rgba(255,77,79,0.9); }
.ph-tongbu-progress { padding: 15px; background: #fff; margin: 10px 0; border-radius: 8px; }
.ph-tongbu-progress-msg { margin-bottom: 10px; color: #333; }
.ph-tongbu-log { max-height: 200px; overflow-y: auto; padding: 10px 15px; background: #f5f5f5; margin: 10px 0; border-radius: 8px; font-size: 12px; }
.ph-fixed-bottom { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9999; }
.ph-fixed-bottom .ph-spinner { width: 50px; height: 50px; border-width: 4px; }
.ph-fixed-bottom p { color: #fff; margin-top: 15px; font-size: 16px; }
.ph-hidden { display: none; }