| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224 |
- /* ============================================================
- m.css — 手机版(AI 设计 / 订单 / 物流)
- ============================================================ */
- .m-body {
- margin: 0; background: #f4f1ea; color: #17140f;
- font-family: -apple-system, "PingFang SC", "Helvetica Neue", sans-serif;
- min-height: 100vh; min-height: 100dvh;
- padding-bottom: 62px; /* tabbar */
- }
- .m-body button { font-family: inherit; }
- /* 头部 */
- .m-head {
- position: sticky; top: 0; z-index: 30;
- display: flex; align-items: center; gap: 10px;
- background: #17140f; color: #fffdf8;
- padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
- }
- .m-logo { display: flex; align-items: center; gap: 7px; text-decoration: none; color: inherit; }
- .m-logo svg { width: 22px; height: 22px; }
- .m-logo b { font-size: 15px; }
- .m-quota { margin-left: auto; font-size: 10.5px; color: rgba(255,253,248,.72); }
- .m-login {
- border: 1px solid rgba(255,253,248,.4); background: none; color: #fffdf8;
- border-radius: 999px; padding: 5px 13px; font-size: 12.5px; cursor: pointer;
- }
- /* 视图 */
- .m-view {
- display: flex; flex-direction: column;
- min-height: calc(100dvh - 62px - 54px);
- }
- .m-view[hidden] { display: none; }
- /* ---------------- AI 聊天 ---------------- */
- .m-chat {
- flex: 1; overflow-y: auto; padding: 14px 12px 6px;
- display: flex; flex-direction: column; gap: 10px;
- }
- .m-msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.65; white-space: normal; }
- .m-msg.ai { background: #fff; border: 1px solid #e8e2d5; border-top-left-radius: 4px; align-self: flex-start; }
- .m-msg.user { background: #ff5c2b; color: #fff; border-top-right-radius: 4px; align-self: flex-end; }
- .m-msg.step { background: none; border: none; color: #6b665e; font-size: 12px; padding: 2px 6px; }
- .m-msg.step.pending { opacity: .65; }
- .m-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ff5c2b; margin-right: 5px; animation: mblink 1.1s infinite; }
- @keyframes mblink { 50% { opacity: .25; } }
- /* 方案状态卡 */
- .m-agentcard { margin: 4px 12px 0; background: #fff; border: 1px solid #e8e2d5; border-radius: 13px; padding: 11px 12px; }
- .m-agentcard[hidden] { display: none; }
- .m-chips { display: flex; flex-wrap: wrap; gap: 6px; }
- .m-chips span { background: #f4f1e9; border-radius: 6px; padding: 3px 8px; font-size: 11px; color: #4c473f; }
- .m-agentcard .m-actions { display: flex; gap: 8px; margin-top: 10px; }
- .m-actions button {
- flex: 1; border-radius: 9px; padding: 9px 0; font-size: 13px; font-weight: 700; cursor: pointer;
- }
- .m-btn-ghost { border: 1px solid #ddd5c6; background: #fff; color: #4c473f; }
- .m-btn-primary { border: 0; background: #ff5c2b; color: #fff; }
- .m-btn-primary:active { background: #e64d1f; }
- /* 3D 预览舞台 */
- .m-3dwrap {
- margin: 10px 12px 0; position: relative;
- background: radial-gradient(120% 90% at 50% 12%, #fffdf8 0%, #f1ebe0 78%, #e8e0d1 100%);
- border: 1px solid #e8e2d5; border-radius: 16px; overflow: hidden;
- }
- .m-3dwrap[hidden] { display: none; }
- .m-3d { position: relative; height: 320px; touch-action: none; }
- .m-3d canvas { border-radius: 16px; }
- .m-3d-hint {
- position: absolute; left: 0; right: 0; bottom: 8px; text-align: center;
- font-size: 11px; color: #a79d8d; pointer-events: none; letter-spacing: .3px;
- }
- /* 预览图(2D 正背面缩略图) */
- .m-agentpreview { margin: 10px 12px 0; }
- .m-agentpreview[hidden] { display: none; }
- .m-faces { display: flex; gap: 8px; }
- .m-face { flex: 1; background: #fff; border: 1px solid #e8e2d5; border-radius: 12px; padding: 8px; position: relative; }
- .m-face svg { width: 100%; height: auto; display: block; }
- .m-face i { position: absolute; right: 8px; top: 8px; font-style: normal; font-size: 9px; color: #a79d8d; }
- /* 快捷提问 */
- .m-quick { display: flex; gap: 7px; padding: 10px 12px 4px; overflow-x: auto; }
- .m-quick button {
- flex: none; border: 1px solid #ddd5c6; background: #fff; color: #4c473f;
- border-radius: 999px; padding: 6px 12px; font-size: 12px; cursor: pointer; white-space: nowrap;
- }
- .m-quick button:active { border-color: #ff5c2b; color: #ff5c2b; }
- /* 输入栏 */
- .m-inputbar {
- position: sticky; bottom: 0; display: flex; align-items: flex-end; gap: 8px;
- padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
- background: linear-gradient(180deg, rgba(244,241,234,0), #f4f1ea 28%);
- }
- .m-inputbar textarea {
- flex: 1; resize: none; border: 1px solid #ddd5c6; border-radius: 12px;
- background: #fff; padding: 10px 12px; font-size: 14px; line-height: 1.4;
- max-height: 96px; outline: none; font-family: inherit;
- }
- .m-inputbar textarea:focus { border-color: #ff5c2b; }
- .m-inputbar button {
- width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%;
- background: #ff5c2b; color: #fff; cursor: pointer; display: grid; place-items: center;
- }
- .m-inputbar button svg { width: 20px; height: 20px; }
- .m-inputbar button:disabled { opacity: .5; }
- /* ---------------- 订单列表 ---------------- */
- .m-orders { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
- .m-order-card { background: #fff; border: 1px solid #e8e2d5; border-radius: 13px; padding: 13px 14px; cursor: pointer; }
- .m-order-top { display: flex; align-items: center; gap: 8px; }
- .m-order-top b { font-size: 13.5px; }
- .m-order-top .st { margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
- .st.producing { background: #fff4ec; color: #ff5c2b; }
- .st.pending_payment { background: #fdf6ea; color: #d98a1f; }
- .st.shipped { background: #eef6f0; color: #3a8a5c; }
- .st.done, .st.completed { background: #f1f0ec; color: #6b665e; }
- .st.cancelled { background: #f7f0ef; color: #a05a52; }
- .m-order-sum { font-size: 12px; color: #6b665e; margin-top: 6px; }
- .m-order-foot { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
- .m-order-foot .price { margin-left: auto; color: #ff5c2b; font-weight: 800; font-size: 15px; }
- .m-order-foot small { color: #a79d8d; font-size: 10.5px; }
- .m-orders-empty { text-align: center; padding: 60px 20px; color: #a79d8d; font-size: 13px; }
- .m-orders-empty b { display: block; color: #17140f; margin-bottom: 6px; }
- /* ---------------- 订单详情 ---------------- */
- .m-order-detail { flex: 1; padding: 12px; }
- .m-detail-card { background: #fff; border: 1px solid #e8e2d5; border-radius: 13px; padding: 14px; margin-bottom: 10px; }
- .m-detail-card h4 { margin: 0 0 10px; font-size: 13px; }
- .m-kv { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 4px 0; }
- .m-kv span { color: #8a8478; flex: none; }
- .m-kv b { font-weight: 600; text-align: right; word-break: break-all; }
- .m-track { border-left: 2px solid #eee7da; margin: 4px 0 0 6px; padding-left: 14px; }
- .m-track-item { position: relative; padding: 7px 0; font-size: 12.5px; }
- .m-track-item::before {
- content: ''; position: absolute; left: -19.5px; top: 13px;
- width: 7px; height: 7px; border-radius: 50%; background: #ff5c2b;
- }
- .m-track-item small { display: block; color: #a79d8d; font-size: 10.5px; margin-top: 2px; }
- .m-paybar { position: sticky; bottom: 62px; padding: 10px 12px; background: #f4f1ea; }
- .m-paybar button {
- width: 100%; border: 0; border-radius: 11px; padding: 13px 0;
- background: #ff5c2b; color: #fff; font-size: 15px; font-weight: 800; cursor: pointer;
- }
- .m-back { border: 0; background: none; color: #4c473f; font-size: 13px; padding: 4px 2px; cursor: pointer; }
- /* ---------------- 下单面板 ---------------- */
- .m-sheet-mask { position: fixed; inset: 0; background: rgba(23,20,15,.45); z-index: 80; }
- .m-sheet {
- position: fixed; left: 0; right: 0; bottom: 0; z-index: 81;
- background: #fffdf8; border-radius: 18px 18px 0 0; max-height: 88dvh;
- display: flex; flex-direction: column;
- animation: msheet .22s ease-out;
- }
- .m-sheet[hidden] { display: none; }
- @keyframes msheet { from { transform: translateY(40px); opacity: .4; } }
- .m-sheet-head {
- display: flex; align-items: center; justify-content: space-between;
- padding: 14px 16px 10px; border-bottom: 1px solid #f0ece2;
- }
- .m-sheet-head b { font-size: 15px; }
- .m-sheet-head button { border: 0; background: none; font-size: 15px; color: #8a8478; cursor: pointer; }
- .m-sheet-body { padding: 12px 16px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; }
- .m-sheet.m-tip .m-sheet-body { text-align: center; padding-top: 20px; }
- .m-tip-ic { margin-bottom: 6px; }
- .m-tip b { font-size: 15.5px; }
- .m-tip p { font-size: 12.5px; color: #6b665e; line-height: 1.7; margin: 8px 0 14px; }
- .m-tip-actions { display: flex; gap: 9px; }
- .m-tip-actions button { flex: 1; border-radius: 10px; padding: 11px 0; font-size: 13.5px; font-weight: 700; cursor: pointer; }
- #mTipCopy { border: 1px solid #ddd5c6; background: #fff; color: #4c473f; }
- #mTipOk { border: 0; background: #ff5c2b; color: #fff; }
- /* 表单 */
- .m-form-row { margin-bottom: 11px; }
- .m-form-row label { display: block; font-size: 11px; color: #8a8478; margin-bottom: 5px; font-weight: 600; }
- .m-form-row input, .m-form-row select {
- width: 100%; box-sizing: border-box; height: 40px; border: 1px solid #ddd5c6;
- border-radius: 9px; background: #faf8f2; padding: 0 11px; font-size: 14px;
- outline: none; font-family: inherit; color: #17140f;
- }
- .m-form-row input:focus, .m-form-row select:focus { border-color: #ff5c2b; background: #fff; }
- .m-form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
- .m-quote {
- display: flex; align-items: baseline; justify-content: space-between;
- background: #fff4ec; border-radius: 10px; padding: 11px 13px; margin: 4px 0 12px;
- }
- .m-quote span { font-size: 12px; color: #8a6a4a; }
- .m-quote b { color: #ff5c2b; font-size: 19px; }
- .m-quote b small { font-size: 11px; color: #b39277; font-weight: 600; }
- .m-submit {
- width: 100%; border: 0; border-radius: 11px; padding: 13px 0;
- background: #ff5c2b; color: #fff; font-size: 15px; font-weight: 800; cursor: pointer;
- }
- .m-submit:disabled { opacity: .55; }
- /* ---------------- Tabbar ---------------- */
- .m-tabbar {
- position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
- display: flex; background: #fff; border-top: 1px solid #e8e2d5;
- padding-bottom: env(safe-area-inset-bottom);
- }
- .m-tabbar button {
- flex: 1; border: 0; background: none; cursor: pointer;
- display: flex; flex-direction: column; align-items: center; gap: 2px;
- padding: 7px 0 6px; color: #a79d8d; font-size: 10px;
- }
- .m-tabbar button svg { width: 21px; height: 21px; }
- .m-tabbar button.on { color: #ff5c2b; font-weight: 700; }
- /* Toast */
- .m-toast {
- position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%);
- background: rgba(23,20,15,.92); color: #fff; font-size: 13px;
- border-radius: 9px; padding: 9px 16px; z-index: 99; max-width: 84vw; text-align: center;
- }
- .m-toast[hidden] { display: none; }
- /* 桌面访问提示条 */
- .m-desktop-tip {
- background: #fff4ec; color: #b35a1f; font-size: 12px;
- padding: 8px 14px; text-align: center;
- }
|