/* 工商代办服务平台 - 前台手机H5样式 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', Arial, sans-serif; background: #f0f4ff; color: #333; font-size: 14px; }
body { padding-bottom: 70px; }
a { text-decoration: none; color: inherit; }
input, textarea, select { outline: none; font-family: inherit; font-size: 14px; }

/* ===== 顶部导航（隐藏，顶部直接显示横幅）===== */
.top-bar { display: none; }

/* ===== 内容区 ===== */
.page-content { padding-top: 0; }

/* ===== 顶部Banner ===== */
.banner-wrap { width: 100%; }
.banner-wrap img { width: 100%; display: block; }
.notice-bar {
    background: #e6f4ff; color: #0958d9;
    padding: 8px 16px; font-size: 13px;
    display: flex; align-items: center; gap: 6px;
    cursor: pointer;
}
.notice-bar i { font-size: 15px; }

/* ===== 步骤条 ===== */
.steps {
    display: flex; align-items: center; justify-content: center;
    padding: 14px 20px; background: #fff; margin-bottom: 8px;
    position: sticky; top: 0; z-index: 50;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.step-item { display: flex; align-items: center; flex-direction: column; flex: 1; }
.step-num {
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600;
    background: #e0e0e0; color: #999;
    transition: all .3s;
}
.step-item.active .step-num, .step-item.done .step-num { background: #1677ff; color: #fff; }
.step-label { font-size: 12px; color: #999; margin-top: 4px; }
.step-item.active .step-label, .step-item.done .step-label { color: #1677ff; }
.step-line { flex: 1; height: 1px; background: #e0e0e0; margin: 0 6px; margin-top: -16px; }
.step-line.done { background: #1677ff; }

/* ===== 表单卡片 ===== */
.form-card {
    background: #fff; border-radius: 12px;
    margin: 0 12px 12px; padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.form-card .card-title {
    font-size: 15px; font-weight: 600; color: #333;
    padding-bottom: 12px; border-bottom: 1px solid #f5f5f5; margin-bottom: 12px;
}

/* 服务类型单选 */
.service-types { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0; }
.service-type-item {
    flex: 1; min-width: calc(50% - 5px);
    border: 1.5px solid #e0e0e0; border-radius: 8px;
    padding: 10px 12px; cursor: pointer; transition: all .2s;
    display: flex; align-items: center; gap: 8px;
}
.service-type-item.selected { border-color: #1677ff; background: #e6f4ff; }
.service-type-item .radio-dot {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid #ccc; transition: all .2s; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.service-type-item.selected .radio-dot { border-color: #1677ff; }
.service-type-item.selected .radio-dot::after {
    content: ''; width: 8px; height: 8px;
    border-radius: 50%; background: #1677ff;
}
.service-type-item .name { font-size: 14px; font-weight: 500; }
.service-type-item .price { font-size: 12px; color: #e74c3c; margin-left: auto; }

/* 表单项 */
.form-item { margin-bottom: 0; border-bottom: 1px solid #f5f5f5; }
.form-item:last-child { border-bottom: none; }
.form-row {
    display: flex; align-items: center; min-height: 50px; gap: 10px;
}
.form-row label { font-size: 14px; color: #555; width: 86px; flex-shrink: 0; }
.form-row .required { color: #e74c3c; margin-left: 2px; }
.form-row input[type=text], .form-row input[type=tel], .form-row input[type=number] {
    flex: 1; border: none; font-size: 14px; color: #333;
    padding: 0; background: transparent;
}
.form-row input::placeholder { color: #bbb; }
.form-row .search-btn {
    color: #1677ff; font-size: 13px; white-space: nowrap; cursor: pointer;
    padding: 4px 10px; border: 1px solid #1677ff; border-radius: 12px;
}
.form-row .suffix { color: #999; font-size: 13px; }

/* 搜索下拉 */
.search-dropdown {
    background: #fff; border: 1px solid #d6e4ff; border-radius: 8px;
    max-height: 200px; overflow-y: auto; margin-top: 4px;
    box-shadow: 0 4px 12px rgba(22,119,255,.12);
}
.search-dropdown-item {
    padding: 12px 16px; font-size: 14px; cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
}
.search-dropdown-item:last-child { border-bottom: none; }
.search-dropdown-item:active { background: #e6f4ff; }
.search-dropdown-item .company-name { color: #333; margin-bottom: 2px; }
.search-dropdown-item .credit-code { font-size: 12px; color: #999; }

/* ===== 协议勾选 ===== */
.agreement-row {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 12px 16px; font-size: 13px; color: #666;
}
.agreement-row .check-box {
    width: 18px; height: 18px; border: 1.5px solid #ccc; border-radius: 4px;
    flex-shrink: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.agreement-row .check-box.checked { background: #1677ff; border-color: #1677ff; }
.agreement-row .check-box.checked::after {
    content: '✓'; color: #fff; font-size: 12px; font-weight: bold;
}
.agreement-row a { color: #1677ff; }

/* ===== 确认信息 ===== */
.confirm-card { background: #fff; border-radius: 12px; margin: 0 12px 12px; overflow: hidden; }
.confirm-title {
    background: linear-gradient(135deg, #1677ff, #0958d9);
    color: #fff; padding: 14px 16px; font-size: 15px; font-weight: 600;
}
.confirm-row {
    display: flex; padding: 13px 16px; border-bottom: 1px solid #f5f5f5;
    align-items: flex-start;
}
.confirm-row:last-child { border-bottom: none; }
.confirm-row .label { color: #999; font-size: 13px; width: 80px; flex-shrink: 0; }
.confirm-row .value { color: #333; font-size: 14px; flex: 1; word-break: break-all; }
.confirm-row .value.price { color: #e74c3c; font-size: 18px; font-weight: 700; }

/* ===== 按钮区 ===== */
.btn-area {
    padding: 12px 16px; display: flex; gap: 10px;
    background: #fff; border-top: 1px solid #f5f5f5;
    position: sticky; bottom: 70px;
}
.btn {
    flex: 1; height: 46px; border-radius: 24px; border: none;
    font-size: 16px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.btn-default { background: #f5f5f5; color: #666; }
.btn-default:active { background: #e8e8e8; }
.btn-primary { background: linear-gradient(135deg, #1677ff, #0958d9); color: #fff; }
.btn-primary:active { opacity: .88; }
.btn-primary:disabled { background: #91caff; cursor: not-allowed; }

/* ===== 底部标签栏 ===== */
.tab-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: 56px; background: #fff; border-top: 1px solid #eee;
    display: flex; z-index: 100;
}
.tab-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    cursor: pointer; font-size: 10px; color: #999;
}
.tab-item.active { color: #1677ff; }
.tab-item img { width: 24px; height: 24px; }

/* ===== 我的页面 ===== */
.my-header {
    background: linear-gradient(150deg, #1677ff 0%, #0958d9 60%, #003eb3 100%);
    padding: 36px 20px 52px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.my-header .avatar {
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(255,255,255,.25);
    overflow: hidden;
    border: 3px solid rgba(255,255,255,.5);
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.my-header .avatar img { width: 100%; height: 100%; object-fit: cover; }
.my-header .nickname { font-size: 17px; font-weight: 600; margin-top: 12px; letter-spacing: .5px; }
.my-header .user-id { font-size: 12px; opacity: .75; margin-top: 4px; }

.my-menu-card {
    background: #fff; border-radius: 14px;
    margin: -28px 12px 12px;
    padding: 4px 0;
    box-shadow: 0 4px 20px rgba(22,119,255,.12);
    position: relative; z-index: 10;
}
.my-menu-item {
    display: flex; align-items: center; padding: 16px 16px;
    border-bottom: 1px solid #f5f5f5; cursor: pointer;
}
.my-menu-item:last-child { border-bottom: none; }
.my-menu-item:active { background: #f5f8ff; }
.my-menu-item .icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-right: 12px; font-size: 18px; flex-shrink: 0; }
.my-menu-item .label { flex: 1; font-size: 15px; color: #333; }
.my-menu-item .arrow { color: #ccc; font-size: 16px; flex-shrink: 0; }

/* ===== 订单列表 ===== */
.order-card {
    background: #fff; border-radius: 12px;
    margin: 0 12px 10px; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.order-card .order-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-bottom: 1px solid #f5f5f5;
}
.order-card .order-no { font-size: 12px; color: #999; }
.order-card .order-status { font-size: 13px; font-weight: 500; }
.order-card .order-body { padding: 12px 16px; }
.order-card .order-row { display: flex; margin-bottom: 6px; font-size: 14px; }
.order-card .order-row:last-child { margin-bottom: 0; }
.order-card .order-row .k { color: #999; width: 72px; flex-shrink: 0; font-size: 13px; }
.order-card .order-row .v { color: #333; flex: 1; word-break: break-all; }
.order-card .order-footer {
    padding: 10px 16px; border-top: 1px solid #f5f5f5;
    display: flex; justify-content: flex-end; gap: 8px;
}
.order-card .order-footer .amount { font-size: 16px; font-weight: 700; color: #e74c3c; flex: 1; display: flex; align-items: center; }
.btn-sm {
    height: 32px; padding: 0 16px; border-radius: 16px;
    border: 1.5px solid #ccc; background: #fff; font-size: 13px; cursor: pointer;
}
.btn-sm.primary { border-color: #1677ff; color: #1677ff; }
.btn-sm.danger { border-color: #ff4d4f; color: #ff4d4f; }

/* 状态颜色 */
.status-pending { color: #faad14; }
.status-paid { color: #1677ff; }
.status-refund { color: #ff4d4f; }

/* ===== 空状态 ===== */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state img { width: 100px; opacity: .5; margin-bottom: 16px; }
.empty-state p { color: #bbb; font-size: 15px; }

/* ===== 弹窗 ===== */
.modal-mask {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    z-index: 200; display: flex; align-items: flex-end;
}
.modal-mask.center { align-items: center; justify-content: center; }
.modal-box {
    width: 100%; background: #fff; border-radius: 16px 16px 0 0;
    padding: 20px; max-height: 80vh; overflow-y: auto;
}
.modal-mask.center .modal-box { width: 88%; border-radius: 16px; }
.modal-title { font-size: 16px; font-weight: 600; text-align: center; margin-bottom: 16px; }
.modal-content { font-size: 14px; line-height: 1.8; color: #555; }
.modal-close {
    display: block; margin-top: 16px; text-align: center;
    color: #999; font-size: 14px; cursor: pointer;
}

/* ===== 支付页 ===== */
.pay-card { background: #fff; border-radius: 12px; margin: 12px; padding: 24px; text-align: center; }
.pay-card .pay-amount { font-size: 36px; font-weight: 700; color: #e74c3c; margin: 12px 0; }
.pay-card .pay-amount span { font-size: 18px; }
.pay-card .pay-info { color: #999; font-size: 13px; }

/* ===== 底部图片 ===== */
.footer-img { width: 100%; display: block; margin-top: 8px; }

/* ===== Loading ===== */
.loading { text-align: center; padding: 20px; color: #999; font-size: 14px; }
.loading::before { content: ''; display: inline-block; width: 18px; height: 18px; border: 2px solid #e0e0e0; border-top-color: #1677ff; border-radius: 50%; animation: spin .8s linear infinite; margin-right: 8px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Toast ===== */
.toast {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(0,0,0,.7); color: #fff; padding: 10px 20px;
    border-radius: 8px; font-size: 14px; z-index: 999;
    white-space: nowrap; pointer-events: none;
}

/* ===== 页面标题 ===== */
.page-header {
    background: #fff; padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid #f0f0f0; margin-bottom: 8px;
}
.page-header .back { font-size: 20px; color: #1677ff; cursor: pointer; }
.page-header .page-title { font-size: 16px; font-weight: 600; }

/* ===== 弹窗编辑表单 ===== */
.edit-form-item { margin-bottom: 14px; }
.edit-form-item label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.edit-form-item input, .edit-form-item textarea, .edit-form-item select {
    width: 100%; padding: 10px 12px; border: 1px solid #ddd;
    border-radius: 8px; font-size: 14px;
}
.edit-form-item textarea { min-height: 80px; resize: vertical; }
.edit-form-item input:focus, .edit-form-item textarea:focus { border-color: #1677ff; }
