/* 首页与商品详情共用的图纸上传状态和提示样式。 */
[data-drawing-quote] [hidden] { display: none !important; }
.home-drawing-file { display: flex; width: 100%; height: 100%; box-sizing: border-box; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 12px; border: 2px dashed #b5d9bf; border-radius: 8px; background: #f5fbf7; font-size: 12px; }
.home-drawing-success-icon { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #e0f2e5; color: #23703d; font-size: 17px; line-height: 26px; }
.home-drawing-filename { display: block; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #23703d; line-height: 18px; }
.home-drawing-file > button { flex-shrink: 0; padding: 0; border: 0; background: transparent; color: #64748b; cursor: pointer; font: inherit; line-height: 18px; }
.home-drawing-file > button:hover { color: #e85d00; text-decoration: underline; }
.home-drawing-message { margin: 0; font-size: 12px; line-height: 18px; color: #23703d; overflow-wrap: anywhere; }
.home-drawing-message.is-error { color: #c73824; }
.home-drawing-action { position: relative; margin-top: auto; }
.home-drawing-toast { position: absolute; bottom: calc(100% + 10px); left: 0; z-index: 10; display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px; box-sizing: border-box; border: 1px solid #ffe1c7; border-radius: 10px; background: #fff; box-shadow: 0 5px 18px rgba(54,37,22,.14); color: #334155; font: 13px/20px "Microsoft Yahei", sans-serif; animation: home-drawing-toast-in .18s ease-out; }
.home-drawing-toast::after { content: ""; position: absolute; right: 24px; bottom: -6px; width: 10px; height: 10px; border-right: 1px solid #ffe1c7; border-bottom: 1px solid #ffe1c7; background: #fff; transform: rotate(45deg); }
.home-drawing-toast[hidden] { display: none !important; }
.home-drawing-toast-icon { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #fff1e6; color: #ff6a00; font-size: 19px; font-weight: 700; }
.home-drawing-toast-text { min-width: 0; overflow-wrap: anywhere; }
.home-drawing-toast-close { position: relative; display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 26px; height: 26px; margin-left: auto; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #a3a8b0; cursor: pointer; transition: background .15s ease, color .15s ease; }
.home-drawing-toast-close::before, .home-drawing-toast-close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; border-radius: 1px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.home-drawing-toast-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.home-drawing-toast-close:hover { background: #fff1e6; color: #e86a21; }
.home-drawing-toast-close:focus-visible { outline: 2px solid #ff6a00; outline-offset: 2px; }
@keyframes home-drawing-toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .home-drawing-toast { animation: none; } }
