/* ===== 订单模块页面级样式（确认订单/订单列表/订单详情/地址管理），依赖 style.css 基础布局 ===== */

/* 通用：区块标题、按钮、金额高亮 */
.order-red { color: #dd2222; }
.order-amt { color: #dd2222; font-weight: bold; }
.order-panel { background: #fff; border-radius: 5px; padding: 18px 20px; margin-bottom: 16px; }
.order-panel-title { font-size: 16px; font-weight: bold; color: #333; margin-bottom: 14px; padding-left: 10px; border-left: 3px solid #dd2222; }

/* 通用：商品清单表格（订单详情只读明细复用） */
.confirm-table { width: 100%; border-collapse: collapse; }
.confirm-table th { text-align: left; font-weight: normal; color: #999; font-size: 13px; padding: 10px 8px; border-bottom: 1px solid #eee; }
.confirm-table td { padding: 12px 8px; border-bottom: 1px solid #f5f5f5; font-size: 13px; color: #333; vertical-align: middle; }
.confirm-table .col-img img { width: 56px; height: 56px; object-fit: contain; background: #f8f8f8; }
.confirm-table .goods-title { line-height: 1.5; }
.confirm-table .goods-spec { color: #999; font-size: 12px; }

/* 通用：金额汇总（详情页用） */
.amount-summary { text-align: right; font-size: 14px; line-height: 2; }
.amount-summary .total { font-size: 22px; }

/* ===== 确认订单页（样式对标 docs/shoph5 确认订单-微信支付宝 原型） ===== */
.popup-content-aa { margin-top: 10px; display: flex; justify-content: space-between; align-items: stretch; }
.dingdan-left { width: 69%; max-height: 76vh; overflow-y: auto; }
.dingdan-right { width: 29%; position: relative; }

/* 收货地址 */
.address-box { padding: 16px; background: #fff; border-radius: 6px; margin-bottom: 16px; }
.shrxx { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.shrxx1 { font-weight: bold; }
.shrxx2 { color: #555; font-size: 14px; cursor: pointer; }
.shrxx2 a { color: #555; text-decoration: none; }
.shrxx2 a:hover { color: #dd3543; }
.address-text { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; }
.address-text:hover { background: #fafafa; }
.address-text.selected { border-color: #e2231a; background: #fff8f8; }
.address-text p { font-size: 16px; color: #333; line-height: 1.8; margin: 0; }
.address-text .addr-psub { font-size: 14px; color: #666; }
.arrow-qrdd { color: #999; font-size: 18px; }
.qrdd-empty { color: #999; font-size: 14px; padding: 6px 0; }

/* 商品信息 */
.qrdd-box { background-color: #fff; padding: 16px; border-radius: 6px; margin-bottom: 15px; }
.qrdd-box1 { margin-bottom: 10px; font-weight: bold; }
.goods-box { display: flex; justify-content: space-between; padding: 16px; border: 1px solid #eee; border-radius: 6px; margin-bottom: 16px; }
.goods-box:last-child { margin-bottom: 0; }
.goods-left { display: flex; gap: 12px; width: 85%; }
.goods-left img { width: 80px; height: 80px; object-fit: cover; border: 1px solid #7e7e7e; }
.goods-info { min-width: 0; }
.goods-info .goods-name { font-size: 15px; color: #333; margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 560px; }
.goods-desc { font-size: 12px; color: #666; margin: 4px 0; }
.goods-tip { font-size: 12px; color: #c81623; margin: 0; }
.goods-right { text-align: right; }
.goods-right .price { color: #c81623; font-size: 16px; font-weight: bold; margin: 0; }
.num-control { margin-top: 8px; }
.num-control .num { width: 36px; text-align: center; line-height: 26px; color: #666; font-size: 14px; }

/* 订单备注 */
.cpgg-box { padding: 16px; border: 1px solid #eee; border-radius: 6px; margin-bottom: 16px; background: #fff; }
.cpgg-box .jifen-a { display: flex; align-items: center; }
.cpgg-box .jifen-a > span { font-weight: bold; margin-right: 10px; white-space: nowrap; }
.note-input { flex: 1; height: 36px; border: 1px solid #e5e5e5; border-radius: 4px; padding: 6px 10px; font-size: 13px; box-sizing: border-box; }

/* 右侧支付面板 */
.pay-wrap { width: 100%; border: 1px solid #eee; border-radius: 6px; overflow: hidden; min-height: 100%; position: relative; background-color: #fff; }
.pay-header { padding: 14px 16px; background: #fff7e6; font-size: 16px; }
.pay-list { padding: 12px 16px 200px; }
.pay-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f4f4f4; cursor: pointer; }
.pay-item.active { color: #c81623; }
.pay-name { font-size: 16px; }
.pay-list input[type="radio"] { accent-color: red; }
.pay-footer { padding: 16px; position: absolute; bottom: 0; width: 100%; box-sizing: border-box; }
.total-price { font-size: 24px; color: #c81623; font-weight: bold; margin-bottom: 12px; }
.sp-je { margin-bottom: 10px; color: #444; }
.spje { display: flex; justify-content: space-between; }
.spje1 { text-align: right; font-size: 14px; }
.pay-btn { width: 100%; height: 44px; background: #e2231a; color: #fff; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; }
.pay-btn:disabled { background: #f2a2a2; cursor: not-allowed; }
.pay-tip { font-size: 12px; color: #999; margin-top: 8px; text-align: center; }
.tishi { background-color: #f7f9fa; color: #dd3543; font-weight: bold; font-size: 16px; padding: 5px 15px; display: none; }
.tishi.show { display: block; }
.tishi p { color: #222; font-weight: normal; font-size: 13px; line-height: 1.8; margin: 2px 0; }

/* ===== 订单列表页（样式对标 docs/shoph5 我的订单 原型） ===== */
/* 通用按钮（订单详情页操作区复用） */
.o-btn { border: 1px solid #ccc; background: #fff; color: #666; padding: 5px 16px; font-size: 13px; border-radius: 3px; cursor: pointer; }
.o-btn:hover { border-color: #dd2222; color: #dd2222; }
.o-btn.primary { background: #dd2222; color: #fff; border-color: #dd2222; }
.o-btn.primary:hover { background: #c71818; color: #fff; }
.o-btn.waiting { background: #f5f5f5; color: #999; border-color: #e0e0e0; cursor: default; }
.o-btn.waiting:hover { border-color: #e0e0e0; color: #999; }

/* 状态 tab */
.wddd-abox { display: flex; width: 100%; align-items: center; flex-wrap: wrap; border-bottom: 1px solid #eee; padding-bottom: 8px; margin-bottom: 14px; }
.wddd-a2 { font-size: 16px; color: #333; line-height: 30px; padding: 0 16px; cursor: pointer; }
.wddd-a2:hover { color: #de0430; }
.wddd-a2.active { color: #de0430; font-weight: bold; }

/* 订单卡片 */
.wddd-boxa { width: 100%; padding: 10px 20px; border: 1px solid #ccc; margin-bottom: 10px; box-sizing: border-box; }
.wddd-boxa1 { line-height: 30px; margin-bottom: 5px; font-size: 14px; color: #666; }
.wddd-boxa-a1 { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ccc; padding-bottom: 10px; }
.wddd-boxa-a2 { width: 10%; }
.wddd-boxa-a2 img { width: 80px; height: 80px; object-fit: contain; background: #f8f8f8; }
.wddd-boxa-a3 { width: 80%; font-size: 14px; line-height: 24px; color: #333; padding-left: 12px; box-sizing: border-box; }
.wddd-boxa-a3 .gd-name { color: #333; text-decoration: none; }
.wddd-boxa-a3 .gd-name:hover { color: #de0430; }
.wddd-boxa-a3 .gd-sub { color: #999; font-size: 13px; }
.wddd-boxa-a4 { width: 10%; text-align: center; line-height: 20px; font-size: 14px; }
.wddd-boxa-b { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 6px 0; }
.wddd-boxa-b1 { flex: 1; line-height: 30px; font-size: 15px; color: #333; }
.wddd-boxa-b2 { font-size: 15px; color: #333; text-align: right; margin-right: 10px; }
.wddd-btn-group { display: flex; align-items: center; gap: 10px; }
.wddd-buttonh { display: inline-block; min-width: 120px; background-color: #de0430; border-radius: 5px; color: #fff; text-align: center; height: 40px; line-height: 40px; border: 1px solid #de0430; cursor: pointer; padding: 0 12px; box-sizing: border-box; }
.wddd-buttonh:hover { background-color: #c30329; }
.wddd-buttonh.ghost { background-color: #fff; color: #de0430; }
.wddd-buttonh.ghost:hover { background-color: #fff1f3; }
.wddd-buttonh.waiting { background-color: #f5f5f5; border-color: #eee; color: #999; cursor: default; }
.wddd-buttonh.waiting:hover { background-color: #f5f5f5; }
.texth { color: #de0430; cursor: pointer; }
.order-countdown { color: #de0430; font-size: 13px; margin-left: 12px; }
.order-empty { text-align: center; padding: 60px 0; color: #999; font-size: 15px; }
.order-pager { text-align: center; margin-top: 18px; font-size: 14px; }
.order-pager button { padding: 5px 12px; margin: 0 4px; border: 1px solid #ccc; background: #fff; cursor: pointer; border-radius: 3px; }
.order-pager button:disabled { color: #ccc; cursor: not-allowed; }
.order-pager span { color: #666; }

/* ===== 订单详情页 ===== */
.detail-status { background: #fff; border-radius: 5px; padding: 22px 24px; margin-bottom: 16px; }
.detail-status .ds-text { font-size: 20px; font-weight: bold; color: #dd2222; }
.detail-status .ds-tip { color: #888; font-size: 13px; margin-top: 6px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 30px; font-size: 13px; line-height: 1.9; color: #555; }
.info-grid .ig-label { color: #999; display: inline-block; width: 80px; }
.info-grid .ig-full { grid-column: 1 / span 2; }
.log-timeline { list-style: none; padding-left: 0; margin: 0; }
.log-timeline li { position: relative; padding: 0 0 18px 20px; border-left: 1px solid #eee; font-size: 13px; }
.log-timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.log-timeline li::before { content: ""; position: absolute; left: -5px; top: 3px; width: 9px; height: 9px; border-radius: 50%; background: #d0d0d0; }
.log-timeline li:last-child::before { background: #dd2222; }
.log-timeline .lt-time { color: #999; font-size: 12px; }
.log-timeline .lt-note { color: #666; }
.detail-actions { text-align: right; padding: 16px 20px; background: #fff; border-radius: 5px; }

/* ===== 地址管理页（样式对标 docs/shoph5 个人中心-地址管理 原型） ===== */
.page-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.page-title h3 { margin: 0; font-size: 18px; }
.main-content { flex: 1; background: #fff; padding: 20px; border-radius: 4px; }
.address-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.add-address-btn { border: 1px solid #dd2222; color: #dd2222; font-weight: bold; padding: 5px 14px; background: #fff; cursor: pointer; border-radius: 4px; font-size: 15px; }
.add-address-btn:hover { background: #dd2222; color: #fff; }
.tip-text-dizhi { font-size: 14px; color: #666; }

/* 地址卡片 */
.address-item { border: 1px solid #ddd; padding: 16px; margin-bottom: 12px; border-radius: 4px; position: relative; }
.address-item:hover { border-color: #dd2222; }
.address-row { font-size: 15px; line-height: 1.9; color: #333; }
.default-tag { display: inline-block; background: #dd2222; color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 3px; margin-left: 8px; vertical-align: middle; }
.address-op { display: none; text-align: right; margin-top: 8px; }
.address-item:hover .address-op { display: block; }
.address-op a { color: #0066cc; text-decoration: none; font-size: 14px; margin-left: 16px; cursor: pointer; }
.address-op a:hover { text-decoration: underline; }
.address-op a.del-btn { color: #dd2222; }
.addr-empty-manage { text-align: center; padding: 60px 0; color: #999; font-size: 14px; }

/* 新增/编辑地址弹窗 */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.4); z-index: 999; align-items: center; justify-content: center; }
.modal.show { display: flex; }
.modal-box { width: 640px; max-width: 92%; background: #fff; padding: 24px; border-radius: 6px; box-sizing: border-box; }
.modal-box h3 { margin: 0 0 20px; font-size: 18px; }
.form-item-didan { margin-bottom: 14px; width: 100%; display: flex; align-items: center; }
.form-item-didan label { display: inline-block; width: 20%; font-size: 14px; color: #333; }
.form-item-didan input, .form-item-didan textarea { width: 80%; padding: 7px 8px; border: 1px solid #ccc; border-radius: 3px; font-size: 14px; box-sizing: border-box; }
.form-item-didan textarea { resize: vertical; }
.form-item-didan .chk-wrap { width: 80%; font-size: 14px; color: #333; }
.form-item-didan .chk-wrap input { width: auto; margin-right: 6px; vertical-align: middle; }
.area-select-wrap { width: 80%; display: flex; gap: 8px; }
.area-select-wrap select { flex: 1; min-width: 0; width: auto; height: 34px; border: 1px solid #ccc; border-radius: 3px; padding: 0 6px; box-sizing: border-box; font-size: 14px; color: #333; background: #fff; }
.modal-footer { margin-top: 20px; text-align: center; }
.modal-footer button { padding: 7px 22px; margin: 0 8px; cursor: pointer; border-radius: 3px; font-size: 14px; }
.modal-footer .save-btn { border: 1px solid #dd2222; background: #dd2222; color: #fff; }
.modal-footer .cancel-btn { border: 1px solid #ccc; background: #fff; color: #666; }
