/* Toka mobile presentation only. Existing click handlers and order data are unchanged. */
@media (max-width: 768px) {
    #app > .navbar .navbar-brand { max-width: 100%; font-size: 15px; }
    #app > .navbar .navbar-brand > a:first-child { display: inline-flex; align-items: center; max-width: 100%; gap: 4px; }
    #app > .navbar .navbar-brand > a:first-child > span { top: 0 !important; left: 0 !important; overflow-wrap: anywhere; }
    #app > .navbar > .container > .row { justify-content: flex-start; gap: 3px; margin-top: 8px; }
    #app > .navbar .nav-link { min-height: 40px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 8px !important; }
    .toka-home-container .card { border-radius: 15px; margin-bottom: 15px; }
    .toka-home-container .card-header { padding: 13px 14px; }
    .toka-home-container .notice-html .card-block { padding: 14px; overflow-wrap: anywhere; }
    .toka-home-container .notice-html img, .toka-home-container .notice-html video { max-width: 100%; height: auto; }
    .toka-home-container .notice-html iframe { max-width: 100%; }
    .toka-home-container .commodity-search { font-size: 16px; min-height: 44px; min-width: 0; }
    .toka-home-container .search-btn { min-width: 62px; min-height: 44px; white-space: nowrap; }
    .toka-home-container .category-list { height: auto !important; max-height: 240px; overflow-y: auto; }
    .toka-home-container .category-list .category { min-height: 46px; }
    .toka-home-container .category-list .category-line { min-height: 46px; }
    .toka-home-container .toka-shop-panel .shop-content { height: auto !important; max-height: none; overflow: visible; padding: 10px !important; }
    .toka-home-container .shop-content .layui-table,
    .toka-home-container .shop-content .shop-list { display: block; width: 100%; margin: 0; }
    .toka-home-container .shop-content .head { display: none; }
    .toka-home-container .shop-list .item[data-product-id] {
        display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 82px;
        gap: 8px; width: 100%; padding: 13px; margin-bottom: 10px;
        border: 1px solid #f0dfe9; border-radius: 13px; background: #fff;
        box-sizing: border-box; box-shadow: 0 3px 12px #be8ba309;
    }
    .toka-home-container .shop-list .item[data-product-id] > td { display: block; width: auto !important; padding: 0 !important; min-width: 0; border: 0; text-align: left; font-size: 13px; }
    .toka-home-container .shop-list .item[data-product-id] > td:first-child { grid-column: 1/-1; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; white-space: normal; }
    .toka-home-container .shop-list .item[data-product-id] > td:nth-child(2) { grid-column: 1/3; grid-row: 2; text-align: left; align-self: center; }
    .toka-home-container .shop-list .item[data-product-id] > td:nth-child(2) > .acg-after-sale { align-items: flex-start !important; }
    .toka-home-container .shop-list .item[data-product-id] > td:nth-child(3) { grid-column: 1; grid-row: 3; align-self: end; font-weight: 700; font-size: 16px; }
    .toka-home-container .shop-list .item[data-product-id] > td:nth-child(4) { grid-column: 2; grid-row: 3; align-self: end; text-align: right; font-size: 12px; overflow-wrap: anywhere; }
    .toka-home-container .shop-list .item[data-product-id] > td:nth-child(4)::before { content: '库存 '; color: #9b929a; font-weight: 400; }
    .toka-home-container .shop-list .item[data-product-id] > td:nth-child(5) { grid-column: 3; grid-row: 2/4; align-self: center; }
    .toka-home-container .shop-list .item[data-product-id] > td:nth-child(5) a { display: flex; justify-content: center; align-items: center; min-height: 44px; width: 100%; padding: 9px 6px; font-size: 14px; border: 1px solid #f1c4de; background: #fff3fa; border-radius: 11px; gap: 3px; }
    .toka-home-container .shop-list .category-row { display: block; width: 100%; }
    .toka-home-container .shop-list .category-row td { display: block; width: 100% !important; padding: 12px !important; }
    .toka-site-status-wrap { margin-bottom: 12px; }
    .toka-site-status { justify-content: flex-start; }
}
@media (max-width: 700px) {
    body .layui-layer.toka-product-modal-v663.toka-detail-modal-v6646 { width: calc(100vw - 16px) !important; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
    body .toka-detail-modal-v6646 > .layui-layer-content { -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom,0px); }
    body .toka-detail-modal-v6646 .toka-detail-heading { position: sticky; top: 0; z-index: 3; background: #fffafd; margin: 0 -4px; padding-left: 4px; padding-right: 52px; }
    body .toka-detail-modal-v6646 .layui-layer-setwin,
    body .toka-detail-modal-v6646 .layui-layer-setwin .layui-layer-close { width: 44px !important; height: 44px !important; }
    body .toka-detail-modal-v6646 .acg-input { font-size: 16px !important; min-height: 44px; }
    body .toka-detail-modal-v6646 .race-click { min-height: 40px; align-items: center; padding: 8px 12px !important; }
    body .toka-detail-modal-v6646 .pay-button { min-height: 46px; font-size: 14px !important; padding: 12px !important; }
    body .toka-detail-modal-v6646 .toka-buy-now { min-height: 48px; font-size: 16px; touch-action: manipulation; }
    body .toka-detail-modal-v6646 .toka-guarantee-header .account-format-copy { width: 40px; height: 40px; }
    body .toka-detail-modal-v6646 .account-format-detail,
    body .toka-detail-modal-v6646 .account-notice-detail { overflow-wrap: anywhere; }
    #toka-delivery-result { padding: 8px; padding-bottom: max(8px,env(safe-area-inset-bottom)); }
    #toka-delivery-result > section { padding: 16px; border-radius: 15px; }
    #toka-delivery-result header button { min-width: 44px; min-height: 44px; }
    #toka-delivery-result textarea { height: 32vh; font-size: 16px; min-height: 150px; flex-shrink: 0; }
    #toka-delivery-result footer { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px !important; }
    #toka-delivery-result footer a, #toka-delivery-result footer button { min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
    #toka-delivery-result footer .result-download { grid-column: 1/-1; }
}
