/**
 * 商城消费者前台现代主题
 * 仅通过 .theme-modern 作用域覆盖，不影响后台与安装页面。
 */
.theme-modern {
    --modern-primary: #165dff;
    --modern-primary-hover: #0e42c7;
    --modern-primary-soft: #eaf1ff;
    --modern-surface: #ffffff;
    --modern-page: #f5f7fa;
    --modern-text: #182230;
    --modern-text-secondary: #596579;
    --modern-text-muted: #8a94a6;
    --modern-border: #e6eaf0;
    --modern-success: #16a36a;
    --modern-warning: #f59e0b;
    --modern-danger: #e5484d;
    --modern-radius-sm: 0.8rem;
    --modern-radius-card: 1.2rem;
    --modern-radius-panel: 1.6rem;
    --modern-shadow-sm: 0 0.4rem 1.6rem rgba(24, 34, 48, 0.06);
    --modern-shadow-hover: 0 1.2rem 3.2rem rgba(24, 34, 48, 0.12);
    --modern-container: 128rem;
    color: var(--modern-text);
    background: var(--modern-page);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.theme-modern a { color: var(--modern-text-secondary); transition: color .18s ease; }
.theme-modern a:hover { color: var(--modern-primary); }
.theme-modern .am-container { width: min(calc(100% - 4rem), var(--modern-container)); max-width: var(--modern-container); }
.theme-modern .body-content-formal-container { background: var(--modern-page); }
.theme-modern img { max-width: 100%; }

/* 表单与按钮 */
.theme-modern input,
.theme-modern select,
.theme-modern textarea,
.theme-modern .am-form-field {
    border-color: var(--modern-border);
    border-radius: var(--modern-radius-sm);
    color: var(--modern-text);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.theme-modern input:focus,
.theme-modern select:focus,
.theme-modern textarea:focus,
.theme-modern .am-form-field:focus {
    border-color: var(--modern-primary) !important;
    box-shadow: 0 0 0 .3rem rgba(22, 93, 255, .12) !important;
}
.theme-modern .am-btn { min-height: 4rem; border-radius: var(--modern-radius-sm); font-weight: 600; transition: all .18s ease; }
.theme-modern .am-btn-primary { background: var(--modern-primary); border-color: var(--modern-primary); color: #fff; }
.theme-modern .am-btn-primary:hover,
.theme-modern .am-btn-primary:focus { background: var(--modern-primary-hover); border-color: var(--modern-primary-hover); color: #fff; }
.theme-modern .am-btn-secondary,
.theme-modern .am-btn-warning { background: var(--modern-primary-soft); border-color: #cbdcff; color: var(--modern-primary); }

/* 通用卡片、弹层、分页与反馈 */
.theme-modern .am-panel,
.theme-modern .am-modal-dialog,
.theme-modern .am-dropdown-content,
.theme-modern .am-popover,
.theme-modern .am-offcanvas-bar,
.theme-modern .table-no { border: 1px solid var(--modern-border); border-radius: var(--modern-radius-card); box-shadow: var(--modern-shadow-sm); }
.theme-modern .am-pagination > li > a,
.theme-modern .am-pagination > li > span { border-color: var(--modern-border); border-radius: .7rem; margin: 0 .3rem; color: var(--modern-text-secondary); }
.theme-modern .am-pagination > .am-active > a,
.theme-modern .am-pagination > .am-active > span { background: var(--modern-primary); border-color: var(--modern-primary); }
.theme-modern .am-breadcrumb { color: var(--modern-text-muted); padding-block: 1.6rem; }

/* 顶部工具栏、主导航与搜索 */
.theme-modern .header-top { border-bottom: 1px solid var(--modern-border); background: rgba(255,255,255,.94); color: var(--modern-text-muted); }
.theme-modern .header-top a { color: var(--modern-text-secondary); }
.theme-modern .nav-search { background: var(--modern-surface); padding-block: 2rem; }
.theme-modern .nav-search .logo img { max-height: 5.2rem; object-fit: contain; }
.theme-modern .search-input,
.theme-modern .nav-search input { border: .2rem solid var(--modern-primary) !important; background: #fff; }
.theme-modern .search-submit,
.theme-modern .nav-search button { background: var(--modern-primary) !important; border-color: var(--modern-primary) !important; color: #fff !important; }
.theme-modern .header-nav { background: var(--modern-surface); border-bottom: 1px solid var(--modern-border); box-shadow: 0 .4rem 1.6rem rgba(24,34,48,.04); }
.theme-modern .header-nav a { font-weight: 600; color: var(--modern-text); }
.theme-modern .shop-navigation { min-height: 5.2rem; margin: 0; border: 0; background: var(--modern-surface); box-shadow: 0 .4rem 1.6rem rgba(24,34,48,.05); }
.theme-modern .shop-navigation .am-topbar-nav > li > a { min-height: 5.2rem; line-height: 5.2rem; padding: 0 2rem; font-size: 1.5rem; color: var(--modern-text); }
.theme-modern .shop-navigation .am-topbar-nav > li > a::after { display: none; }
.theme-modern .shop-navigation .am-topbar-nav > li > a.active,
.theme-modern .shop-navigation .am-topbar-nav > li > a:hover { color: var(--modern-primary); background: var(--modern-primary-soft); }
.theme-modern .goods-category-title { height: 5.2rem; line-height: 5.2rem; padding-inline: 2.4rem; background: var(--modern-primary); border-radius: var(--modern-radius-sm) var(--modern-radius-sm) 0 0; color: #fff; }
.theme-modern .nav-search .am-container { display: flex; align-items: center; gap: 5rem; }
.theme-modern .nav-search .logo-big { flex: 0 0 20rem; }
.theme-modern .nav-search .logo-big img { max-width: 20rem; max-height: 6rem; object-fit: contain; }
.theme-modern .nav-search .search-bar { position: static; display: block; flex: 1; width: auto; max-width: 72rem; height: auto; min-height: 7rem; margin: 0; }
.theme-modern .nav-search .search-bar form { display: block; width: 100%; }
.theme-modern .search-group { display: flex; height: 4.8rem; border: .2rem solid var(--modern-primary); border-radius: 2.4rem !important; overflow: hidden; background: #fff; box-shadow: 0 .6rem 1.8rem rgba(22,93,255,.1); }
.theme-modern .search-group #search-input { flex: 1; height: 100%; padding: 0 2rem; border: 0 !important; box-shadow: none !important; font-size: 1.4rem; }
.theme-modern .search-group .submit,
.theme-modern #ai-topsearch { position: static; flex: 0 0 9.6rem; width: 9.6rem; height: 4.4rem; padding: 0 1.8rem; border: 0; border-radius: 2.2rem; margin: .2rem; font-size: 1.4rem; line-height: 4.4rem; }
.theme-modern .search-hot-keywords { display: flex !important; align-items: center; gap: 1.6rem; height: 2.4rem; margin: .5rem 0 0; padding: 0 1.4rem; overflow: hidden; }
.theme-modern .search-hot-keywords li { float: none; flex: 0 0 auto; }
.theme-modern .search-hot-keywords a { color: var(--modern-text-muted); font-size: 1.2rem; }

/* 首页主视觉与楼层 */
.theme-modern .modern-home-hero { position: relative; width: min(calc(100% - 4rem), var(--modern-container)); min-height: 48rem; margin: 2rem auto 0; display: grid; grid-template-columns: 22rem minmax(0,1fr) 26rem; grid-template-rows: 1fr; gap: 1.6rem; }
.theme-modern .modern-home-hero > #goods-category,
.theme-modern .modern-home-hero > .goods-category { position: relative; grid-column: 1; grid-row: 1; z-index: 12; width: 100%; }
.theme-modern .modern-home-hero > .slideall { grid-column: 1 / -1; grid-row: 1; width: 100%; padding-left: 23.6rem; padding-right: 27.6rem; box-sizing: border-box; }
.theme-modern .modern-home-hero > .slideall .banner { border-radius: var(--modern-radius-panel); box-shadow: var(--modern-shadow-sm); }
.theme-modern .modern-home-hero .banner-mixed { position: absolute; top: 0; right: 0; width: 26rem; height: 100%; border-radius: var(--modern-radius-panel); }
.theme-modern .modern-home-main { padding-top: 1.2rem; }
.theme-modern .slideall { position: relative; }
.theme-modern .banner,
.theme-modern .banner-mixed,
.theme-modern .home-floor .floor { border-radius: var(--modern-radius-panel); overflow: hidden; }
.theme-modern .banner-mixed { background: rgba(255,255,255,.96); border: 1px solid rgba(230,234,240,.9); box-shadow: var(--modern-shadow-sm); }
.theme-modern .home-floor { padding-bottom: 4rem; }
.theme-modern .small-nav { margin-top: 1.2rem; padding: 1.4rem 1rem; border-radius: var(--modern-radius-card); background: var(--modern-surface); box-shadow: var(--modern-shadow-sm); }
.theme-modern .small-nav .nav-icon { box-shadow: none; background: var(--modern-primary-soft); transition: transform .18s ease; }
.theme-modern .small-nav a:hover .nav-icon { transform: translateY(-.3rem); }
.theme-modern .items-nav-title { display: flex; align-items: baseline; gap: 1.2rem; padding-top: 3.2rem; padding-bottom: 1.4rem; }
.theme-modern .items-nav-title .floor-title { color: var(--modern-text); font-size: 2.4rem; font-weight: 700; }
.theme-modern .items-nav-title .floor-desc { color: var(--modern-text-muted); }
.theme-modern .items-nav-title .more { margin-left: auto; }
.theme-modern .home-floor .floor { background: var(--modern-surface); border: 1px solid var(--modern-border); box-shadow: var(--modern-shadow-sm); }
.theme-modern .goods-list .goods-item,
.theme-modern .goods-list .item,
.theme-modern .floor .goods-item { border-color: var(--modern-border); background: var(--modern-surface); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.theme-modern .goods-list .goods-item:hover,
.theme-modern .goods-list .item:hover,
.theme-modern .floor .goods-item:hover { transform: translateY(-.4rem); border-color: #cfdbef; box-shadow: var(--modern-shadow-hover); }
.theme-modern .price,
.theme-modern .goods-price { color: var(--modern-danger) !important; font-weight: 700; }

/* 搜索、分类、详情、购物车与订单的内容面板 */
.theme-modern .search-list,
.theme-modern .category-content,
.theme-modern .goods-detail,
.theme-modern .cart-content,
.theme-modern .buy-content,
.theme-modern .personal-content,
.theme-modern .order-content { background: var(--modern-surface); border: 1px solid var(--modern-border); border-radius: var(--modern-radius-card); box-shadow: var(--modern-shadow-sm); }
.theme-modern .goods-specifications .selected,
.theme-modern .specifications-container .selected { border-color: var(--modern-primary) !important; color: var(--modern-primary) !important; background: var(--modern-primary-soft); }
.theme-modern .theme-signin-left { background: var(--modern-surface); border-radius: var(--modern-radius-card); padding: 2.4rem; }
.theme-modern .theme-signin-left .sku-line { border: 1px solid var(--modern-border); border-radius: var(--modern-radius-sm); min-height: 3.8rem; }
.theme-modern .theme-signin-left .sku-line.selected,
.theme-modern .theme-signin-left .sku-line:hover { border-color: var(--modern-primary); color: var(--modern-primary); background: var(--modern-primary-soft); }
.theme-modern .tb-detail-hd h1 { color: var(--modern-text); font-weight: 700; line-height: 1.45; }
.theme-modern .tb-detail-panel-base { border-radius: var(--modern-radius-card); background: linear-gradient(135deg, #f3f7ff 0%, #fff 100%); }
.theme-modern .introduce-main .am-tabs-nav { border: 1px solid var(--modern-border); border-radius: var(--modern-radius-card) var(--modern-radius-card) 0 0; background: var(--modern-surface); overflow: hidden; }
.theme-modern .introduce-main .am-tabs-nav > li.am-active span { color: var(--modern-primary); border-color: var(--modern-primary); }
.theme-modern .cart-nav,
.theme-modern .buy-nav,
.theme-modern .order-nav { border-color: var(--modern-border); background: var(--modern-surface); }
.theme-modern .buy-nav { border-radius: var(--modern-radius-card); box-shadow: var(--modern-shadow-sm); }

/* 商品筛选与分类页 */
.theme-modern .map-item { margin-bottom: 1.6rem; padding: .6rem 1.8rem; border: 1px solid var(--modern-border); border-radius: var(--modern-radius-card); background: var(--modern-surface); box-shadow: var(--modern-shadow-sm); }
.theme-modern .map-item > li { border-color: var(--modern-border); padding-block: 1rem; }
.theme-modern .map-text-items ul > li.active a,
.theme-modern .map-images-text-items ul > li.active > a { color: var(--modern-primary); background: var(--modern-primary-soft); border-radius: .6rem; }
.theme-modern .category-list-container { display: grid; grid-template-columns: 22rem minmax(0,1fr); gap: 2rem; padding: 2rem; border: 1px solid var(--modern-border); border-radius: var(--modern-radius-panel); background: var(--modern-surface); box-shadow: var(--modern-shadow-sm); }
.theme-modern .category-list-container ul.category-nav { width: auto; border: 0; border-radius: var(--modern-radius-card); background: #f7f9fc; overflow: hidden; }
.theme-modern .category-list-container ul.category-nav li { border: 0; border-radius: .8rem; margin: .4rem; }
.theme-modern .category-list-container ul.category-nav li.active,
.theme-modern .category-list-container ul.category-nav li:hover { background: var(--modern-primary-soft); color: var(--modern-primary); }
.theme-modern .category-list-container .category-content { width: auto; border: 0; }

/* 购物车与结算 */
.theme-modern .cart-content { margin-top: 2rem; padding: 0 2rem; overflow: hidden; }
.theme-modern .cart-content table { margin: 0; }
.theme-modern .cart-content table tr th { padding: 1.6rem 1rem; background: #f8faff; color: var(--modern-text-secondary); font-weight: 600; }
.theme-modern .cart-content table tr td { padding: 2rem 1rem; border-color: var(--modern-border); }
.theme-modern .cart-content .goods-detail img { border-radius: var(--modern-radius-sm); object-fit: cover; }
.theme-modern .stock-tag .am-form-field { border-radius: 0; }
.theme-modern .cart-nav { min-height: 7rem; margin-top: 1.6rem; border: 1px solid var(--modern-border); border-radius: var(--modern-radius-card); box-shadow: var(--modern-shadow-sm); }
.theme-modern .cart-nav .nav-total-price { color: var(--modern-danger); font-size: 2.2rem; font-weight: 700; }
.theme-modern .buy-items,
.theme-modern .link-list,
.theme-modern .buy-order-nav { margin-bottom: 1.6rem; padding: 2rem; border: 1px solid var(--modern-border); border-radius: var(--modern-radius-card); background: var(--modern-surface); box-shadow: var(--modern-shadow-sm); }
.theme-modern .buy-items h3,
.theme-modern .link-list h3 { color: var(--modern-text); font-size: 1.8rem; font-weight: 700; }
.theme-modern .address-container .address { border: 1px solid var(--modern-border); border-radius: var(--modern-radius-card); transition: border-color .18s ease, box-shadow .18s ease; }
.theme-modern .address-container .address:hover,
.theme-modern .address-container .address-default { border-color: var(--modern-primary); box-shadow: 0 0 0 .3rem rgba(22,93,255,.08); }

/* 用户中心、订单与售后 */
.theme-modern .user-main { padding-block: 2.4rem; }
.theme-modern .user-menu { border: 1px solid var(--modern-border); border-radius: var(--modern-radius-card); background: var(--modern-surface); box-shadow: var(--modern-shadow-sm); overflow: hidden; }
.theme-modern .user-menu a { border-radius: .7rem; }
.theme-modern .user-menu a:hover,
.theme-modern .user-menu .active a { color: var(--modern-primary); background: var(--modern-primary-soft); }
.theme-modern .user-content,
.theme-modern .user-content-body { border-radius: var(--modern-radius-card); }
.theme-modern .user-content .am-panel,
.theme-modern .various .am-panel { border: 1px solid var(--modern-border); border-radius: var(--modern-radius-card); box-shadow: var(--modern-shadow-sm); overflow: hidden; }
.theme-modern .user-content .am-panel-default > .am-panel-hd,
.theme-modern .various .am-panel-default > .am-panel-hd { padding: 1.4rem 1.6rem; border-color: var(--modern-border); background: #f8faff; color: var(--modern-text); font-weight: 700; }
.theme-modern .user-base { border-radius: var(--modern-radius-panel); background-color: var(--modern-primary); background-image: linear-gradient(135deg, #0e42c7 0%, #165dff 55%, #75a2ff 100%); box-shadow: var(--modern-shadow-sm); }
.theme-modern .order-goods table thead { background: #f8faff; }
.theme-modern .order-goods table thead tr th,
.theme-modern .order-goods table tbody tr td { border-color: var(--modern-border); padding: 1.4rem 1rem; }
.theme-modern .items-title { color: var(--modern-text); font-weight: 700; }
.theme-modern .address-operation-btn a { color: var(--modern-primary); }

/* 页脚与内容页 */
.theme-modern .am-footer { margin-top: 4rem; border-top: 1px solid var(--modern-border); background: var(--modern-surface); color: var(--modern-text-muted); }
.theme-modern .article-content,
.theme-modern .agreement-content,
.theme-modern .message-content { padding: 2.4rem; border: 1px solid var(--modern-border); border-radius: var(--modern-radius-card); background: var(--modern-surface); box-shadow: var(--modern-shadow-sm); }

/* 登录注册验证码：隔离通用按钮尺寸，恢复图片验证码的固定可见区域 */
.theme-modern .user-form-content-container .am-position-verify { position: absolute; top: 1.5rem; right: 0; z-index: 3; display: block; width: 12.2rem; height: 3.2rem; }
.theme-modern .user-form-content-container .form-verify { position: relative; display: block; width: 12.2rem; height: 3.2rem; overflow: hidden; border-radius: .6rem; }
.theme-modern .user-form-content-container .form-verify img { display: block; width: 12.2rem !important; min-width: 12.2rem; height: 3.1rem !important; max-width: none; object-fit: cover; border: 1px solid var(--modern-border); background: #fff; }
.theme-modern .user-form-content-container .form-verify a.form-verify-tips { width: 12.2rem; height: 3.1rem; line-height: 3.1rem; }
.theme-modern .user-form-content-container input[name="verify"] { padding-right: 13.2rem !important; }

/* 手机端重新组织视觉密度与操作区域 */
@media (max-width: 767px) {
    .theme-modern { --modern-radius-card: 1rem; }
    .theme-modern .am-container { width: 100%; padding-left: 1.2rem; padding-right: 1.2rem; }
    .theme-modern .header-top,
    .theme-modern .header-nav,
    .theme-modern .nav-search { display: none; }
    .theme-modern .shop-navigation { position: sticky; top: 0; z-index: 100; min-height: 5.6rem; box-shadow: 0 .4rem 1.2rem rgba(24,34,48,.08); }
    .theme-modern .shop-navigation .am-container { display: flex; align-items: center; min-height: 5.6rem; }
    .theme-modern .navigation-search { flex: 1; margin: 0 1rem 0 0; }
    .theme-modern .navigation-search .am-input-group { width: 100%; }
    .theme-modern .navigation-search .am-form-field { height: 4rem; border-radius: 2rem 0 0 2rem; background: #f0f3f8; }
    .theme-modern .navigation-search .am-input-group-btn .am-btn { height: 4rem; min-height: 4rem; border-radius: 0 2rem 2rem 0; background: var(--modern-primary); border-color: var(--modern-primary); color: #fff; }
    .theme-modern .nav-search .logo { display: none; }
    .theme-modern .slideall { padding-top: .8rem; }
    .theme-modern .modern-home-hero { display: flex; flex-direction: column; width: 100%; min-height: 0; margin: 0; gap: 0; }
    .theme-modern .modern-home-hero > #goods-category,
    .theme-modern .modern-home-hero > .goods-category { display: none; }
    .theme-modern .modern-home-hero > .slideall { order: 1; width: 100%; padding: 1.2rem; }
    .theme-modern .modern-home-hero .banner-mixed { position: static; width: 100%; height: auto; margin-top: 1.2rem; }
    .theme-modern .modern-home-main { padding-top: 0; }
    .theme-modern .banner,
    .theme-modern .banner-mixed { border-radius: var(--modern-radius-card); }
    .theme-modern .items-nav-title { padding: 2.4rem 1.2rem 1.2rem; gap: .8rem; }
    .theme-modern .items-nav-title .floor-title { font-size: 2rem; }
    .theme-modern .items-nav-title .floor-desc,
    .theme-modern .items-nav-title .today-brands { display: none; }
    .theme-modern .home-floor .floor { border-width: 0; border-radius: 0; box-shadow: none; background: transparent; }
    .theme-modern .small-nav { display: block; margin: 1.2rem; padding: 1rem 0; overflow-x: auto; white-space: nowrap; }
    .theme-modern .small-nav .am-u-sm-3 { float: none; display: inline-block; width: 20%; min-width: 7rem; vertical-align: top; }
    .theme-modern .goods-list .goods-item,
    .theme-modern .goods-list .item { border-radius: var(--modern-radius-card); overflow: hidden; box-shadow: 0 .3rem 1.2rem rgba(24,34,48,.05); }
    .theme-modern .goods-cartinfo-nav,
    .theme-modern .buy-nav,
    .theme-modern .cart-nav { padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -.6rem 2rem rgba(24,34,48,.1); }
    .theme-modern .buy-nav { position: sticky; bottom: 0; z-index: 90; border-radius: 0; }
    .theme-modern .theme-signin-left { padding: 1.6rem 1.2rem; border-radius: var(--modern-radius-card) var(--modern-radius-card) 0 0; }
    .theme-modern .category-list-container { display: block; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
    .theme-modern .category-list-container ul.category-nav { display: flex; width: 100%; overflow-x: auto; border-radius: 0; white-space: nowrap; }
    .theme-modern .category-list-container ul.category-nav li { flex: 0 0 auto; }
    .theme-modern .map-item { margin: 1.2rem; padding: .4rem 1.2rem; }
    .theme-modern .cart-content { margin: 1.2rem 0 8rem; padding: 0 1.2rem; border: 0; border-radius: 0; box-shadow: none; }
    .theme-modern .cart-content table tr { margin: 1.2rem 0; border-radius: var(--modern-radius-card); background: var(--modern-surface); box-shadow: var(--modern-shadow-sm); overflow: hidden; }
    .theme-modern .cart-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 90; margin: 0; border-radius: 0; }
    .theme-modern .buy-items,
    .theme-modern .link-list,
    .theme-modern .buy-order-nav { margin: 1.2rem; padding: 1.6rem 1.2rem; }
    .theme-modern .user-main { padding-block: 0; }
    .theme-modern .user-base { border-radius: 0 0 var(--modern-radius-panel) var(--modern-radius-panel); }
    .theme-modern .user-content .am-panel,
    .theme-modern .various .am-panel { margin: 1.2rem; box-shadow: var(--modern-shadow-sm); }
    .theme-modern .am-btn { min-height: 4.4rem; }
}

/* PC 商品详情恢复原生双栏结构，避免 Grid 与旧浮动宽度规则冲突 */
@media (min-width: 768px) {
    .theme-modern .system-goods-detail .item-inform { display: block !important; min-height: 48rem; padding: 2.4rem; overflow: hidden; }
    .theme-modern .system-goods-detail .clearfix-left { display: block; float: left; width: 40rem; }
    .theme-modern .system-goods-detail .clearfix-right { float: right; width: calc(100% - 43.2rem); min-width: 0; margin: 0; }
    .theme-modern .system-goods-detail .clearfix-right-content { width: 100%; }
    .theme-modern .system-goods-detail .tb-detail-panel-base { width: 100%; }
    .theme-modern .system-goods-detail .theme-popover { width: 100%; }
    .theme-modern .system-goods-detail .theme-signin-left { width: 100%; padding: 1.6rem 0; }
    .theme-modern .system-goods-detail .buy-nav { width: 100%; }
    .theme-modern .system-goods-detail .introduce { display: block !important; width: min(calc(100% - 4rem), var(--modern-container)); padding: 1.2rem; overflow: hidden; }
    .theme-modern .system-goods-detail .browse { display: block; float: left; width: 20%; }
    .theme-modern .system-goods-detail .introduce-main { float: right; width: 80%; min-width: 0; }
    .theme-modern .system-goods-detail .introduce-main.no-left-goods { float: none; width: 100%; }
    .theme-modern .system-goods-detail .introduce-main .am-tabs,
    .theme-modern .system-goods-detail .introduce-main .am-tabs-bd,
    .theme-modern .system-goods-detail .introduce-main .am-tab-panel,
    .theme-modern .system-goods-detail .introduce-main .detail-content,
    .theme-modern .system-goods-detail .introduce-main .content-web { width: 100%; max-width: 100%; }
    .theme-modern .system-goods-detail .introduce-main .content-web img { max-width: 100% !important; height: auto !important; }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .theme-modern .system-goods-detail .clearfix-left { width: 34rem; }
    .theme-modern .system-goods-detail .clearfix-right { width: calc(100% - 36rem); }
}

/* 按要求还原手机商品详情购买区位置：跟随规格内容，不固定到底部 */
@media (max-width: 767px) {
    .theme-modern .system-goods-detail { padding-bottom: 0; }
    .theme-modern .system-goods-detail .buy-nav { position: static !important; right: auto; bottom: auto; left: auto; z-index: auto; width: auto; min-height: 0; margin: 1.6rem 0 0; padding: 1rem; border: 1px solid var(--modern-border); border-radius: var(--modern-radius-card); background: #fff; box-shadow: var(--modern-shadow-sm); backdrop-filter: none; }
}

/* 购买规格弹层必须覆盖手机导航，确认操作始终可见 */
.theme-modern .theme-popover-mask { z-index: 1290; }
.theme-modern .theme-popover { z-index: 1300; }

@media (max-width: 767px) {
    .theme-modern .theme-popover { bottom: 0; max-height: calc(100dvh - 1.2rem); padding-bottom: env(safe-area-inset-bottom); overflow-y: auto; overscroll-behavior: contain; border-radius: 1.6rem 1.6rem 0 0; background: #fff; box-shadow: 0 -1rem 3rem rgba(24,34,48,.2); }
    .theme-modern .theme-popover .theme-signin { min-height: 0; padding-bottom: 0; }
    .theme-modern .theme-popover .theme-signin-left { max-height: calc(100dvh - 17rem); margin-bottom: 0; padding-bottom: 1rem; overflow-y: auto; }
    .theme-modern .theme-popover .btn-op { position: sticky; right: 0; bottom: 0; left: 0; z-index: 5; display: block; padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -.6rem 1.6rem rgba(24,34,48,.08); }
    .theme-modern .theme-popover .btn.confirm { position: sticky; bottom: 0; z-index: 6; display: block; width: 100%; min-height: 4.8rem; margin: 0; border-radius: .8rem; }
}

/* 手机详情购买按钮以整行作为基准居中 */
@media (max-width: 767px) {
    .theme-modern .system-goods-detail .buy-nav { display: grid; grid-template-columns: 1fr minmax(16rem, 46%) 1fr; align-items: stretch; gap: 0; }
    .theme-modern .system-goods-detail .buy-nav-opt { grid-column: 1; justify-self: start; }
    .theme-modern .system-goods-detail .buy-submit-container { grid-column: 2; width: 100%; justify-self: center; }
    .theme-modern .system-goods-detail .buy-submit-container .am-btn { width: 100%; min-width: 0; text-align: center; }
    .theme-modern .system-goods-detail .buy-nav::after { content: ""; grid-column: 3; }
}

/* PC 搜索框独立组件：彻底覆盖旧版百分比宽度和定位规则 */
@media (min-width: 768px) {
    .theme-modern .nav-search .search-bar { display: block; width: min(72rem, calc(100% - 25rem)); max-width: 72rem; min-height: 7.2rem; height: auto; margin: 0; }
    .theme-modern .nav-search .search-bar form { display: block; width: 100%; }
    .theme-modern .nav-search .search-bar form .search-group { display: grid; grid-template-columns: minmax(0, 1fr) 13.2rem; align-items: center; width: 100%; height: 4.8rem; padding: .2rem; border: .2rem solid var(--modern-primary) !important; border-radius: 2.4rem !important; background: #fff; overflow: hidden; box-shadow: 0 .6rem 1.8rem rgba(22,93,255,.1); }
    .theme-modern .nav-search .search-bar form .search-group #search-input { position: static; display: block; width: 100% !important; min-width: 0; height: 4.4rem !important; margin: 0; padding: 0 2rem; border: 0 !important; border-radius: 2.2rem 0 0 2.2rem; outline: 0; background: transparent; box-shadow: none !important; color: var(--modern-text); font-size: 1.4rem; line-height: 4.4rem; }
    .theme-modern .nav-search .search-bar form .search-group #ai-topsearch { position: static; display: block; width: 13.2rem !important; min-width: 13.2rem; height: 4.4rem !important; margin: 0; padding: 0 2rem; border: 0 !important; border-radius: 2.2rem !important; background: var(--modern-primary) !important; color: #fff !important; font-size: 1.5rem; font-weight: 600; line-height: 4.4rem; text-align: center; box-shadow: none; }
    .theme-modern .nav-search .search-bar form .search-group #ai-topsearch:hover { background: var(--modern-primary-hover) !important; }
    .theme-modern .nav-search .search-bar .search-hot-keywords { display: flex !important; width: 100%; height: 2.2rem; margin: .5rem 0 0; padding: 0 1.8rem; }
}

/* 商品详情页现代布局 */
.theme-modern .system-goods-detail { color: var(--modern-text); }
.theme-modern .system-goods-detail .item-inform { display: grid; grid-template-columns: minmax(36rem, 48%) minmax(0, 1fr); gap: 3.2rem; padding: 2.4rem; border: 1px solid var(--modern-border); border-radius: var(--modern-radius-panel) !important; background: var(--modern-surface); box-shadow: var(--modern-shadow-sm); }
.theme-modern .system-goods-detail .item-inform-left,
.theme-modern .system-goods-detail .item-inform-right { width: auto; min-width: 0; }
.theme-modern .system-goods-detail .tb-detail-hd h1 { margin-bottom: 1.2rem; color: var(--modern-text); font-size: 2.2rem; font-weight: 700; line-height: 1.5; }
.theme-modern .system-goods-detail .simple-desc { color: var(--modern-text-secondary); font-size: 1.3rem; line-height: 1.7; }
.theme-modern .system-goods-detail .tb-detail-panel-base { margin: 1.6rem 0; padding: 1.8rem 2rem; border: 1px solid #dce7ff; border-radius: var(--modern-radius-card); background: linear-gradient(135deg, #f1f6ff 0%, #fff 100%); }
.theme-modern .system-goods-detail .price-now,
.theme-modern .system-goods-detail .price { color: var(--modern-danger) !important; font-size: 2.8rem; font-weight: 800; }
.theme-modern .system-goods-detail .original-price { color: var(--modern-text-muted); }
.theme-modern .system-goods-detail .theme-options li a,
.theme-modern .system-goods-detail .sku-line { min-height: 4rem; padding: .8rem 1.4rem; border: 1px solid var(--modern-border); border-radius: .8rem; background: #fff; }
.theme-modern .system-goods-detail .theme-options li.selected a,
.theme-modern .system-goods-detail .sku-line.selected { border-color: var(--modern-primary); background: var(--modern-primary-soft); color: var(--modern-primary); box-shadow: 0 0 0 .2rem rgba(22,93,255,.08); }
.theme-modern .system-goods-detail .buy-nav { display: flex; align-items: stretch; gap: 1rem; margin-top: 2rem; padding: 1rem; border: 1px solid var(--modern-border); border-radius: var(--modern-radius-card); background: #fff; box-shadow: var(--modern-shadow-sm); }
.theme-modern .system-goods-detail .buy-nav-opt { display: flex; flex: 0 0 auto; align-items: stretch; }
.theme-modern .system-goods-detail .buy-nav-opt > a { display: flex; min-width: 7rem; flex-direction: column; align-items: center; justify-content: center; padding: .5rem 1rem; border-right: 1px solid var(--modern-border); color: var(--modern-text-secondary); }
.theme-modern .system-goods-detail .buy-submit-container { display: flex; flex: 1; gap: 1rem; }
.theme-modern .system-goods-detail .buy-submit-container .am-btn { flex: 1; min-height: 5rem; border-radius: 1rem; font-size: 1.6rem; }
.theme-modern .system-goods-detail .introduce { display: grid; grid-template-columns: 22rem minmax(0, 1fr); gap: 2rem; margin-top: 2.4rem !important; }
.theme-modern .system-goods-detail .introduce-main { min-width: 0; border: 1px solid var(--modern-border); border-radius: var(--modern-radius-card); background: var(--modern-surface); box-shadow: var(--modern-shadow-sm); overflow: hidden; }
.theme-modern .system-goods-detail .introduce-main .am-tabs-nav { position: sticky; top: 0; z-index: 20; border: 0; border-bottom: 1px solid var(--modern-border); border-radius: 0; }
.theme-modern .system-goods-detail .introduce-main .am-tabs-bd { padding: 2rem; }

@media (max-width: 767px) {
    .theme-modern .system-goods-detail { padding-bottom: calc(8.2rem + env(safe-area-inset-bottom)); }
    .theme-modern .system-goods-detail .item-inform { display: block; width: auto; margin: 0; padding: 1.6rem 1.2rem; border: 0; border-radius: 0 !important; box-shadow: none; }
    .theme-modern .system-goods-detail .tb-detail-hd h1 { font-size: 1.8rem; }
    .theme-modern .system-goods-detail .tb-detail-panel-base { padding: 1.4rem 1.2rem; }
    .theme-modern .system-goods-detail .price-now,
    .theme-modern .system-goods-detail .price { font-size: 2.4rem; }
    .theme-modern .system-goods-detail .buy-nav { position: fixed !important; right: 0; bottom: 0; left: 0; z-index: 1100; display: flex; height: auto; min-height: 6.4rem; margin: 0; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--modern-border); border-radius: 0; background: rgba(255,255,255,.98); box-shadow: 0 -.8rem 2.4rem rgba(24,34,48,.12); backdrop-filter: blur(1.2rem); }
    .theme-modern .system-goods-detail .buy-nav-opt { flex: 0 0 auto; }
    .theme-modern .system-goods-detail .buy-nav-opt > a { min-width: 5.8rem; padding: .2rem .6rem; border-right: 0; font-size: 1.1rem; }
    .theme-modern .system-goods-detail .buy-nav-opt .nav-icon { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
    .theme-modern .system-goods-detail .buy-nav-opt i { font-size: 2rem; }
    .theme-modern .system-goods-detail .buy-submit-container { gap: .8rem; }
    .theme-modern .system-goods-detail .buy-submit-container .am-btn { min-height: 5rem; padding: 0 1.2rem; font-size: 1.4rem; }
    .theme-modern .system-goods-detail .introduce { display: block; width: auto; margin: 1.2rem !important; }
    .theme-modern .system-goods-detail .introduce-left { display: none; }
    .theme-modern .system-goods-detail .introduce-main { border: 0; box-shadow: none; }
    .theme-modern .system-goods-detail .introduce-main .am-tabs-bd { padding: 1.2rem 0; }
    .theme-modern.index-goods-index .mobile-navigation { display: none; }
}

/* 2026-07 首页实机截图校正：恢复完整主视觉宽度 */
.theme-modern .modern-home-hero { display: block; width: 100%; min-height: 0; margin-top: 0; }
.theme-modern .modern-home-hero > .slideall { width: 100%; min-height: 0; padding: 0; }
.theme-modern .modern-home-hero > .slideall:first-of-type { position: relative; }
.theme-modern .modern-home-hero > .slideall .banner { width: 100%; border-radius: 0; }
.theme-modern .modern-home-hero .banner-mixed { position: absolute; top: 2rem; right: max(2rem, calc((100% - var(--modern-container)) / 2)); width: 26rem; height: calc(100% - 4rem); }
.theme-modern .modern-home-hero #goods-category { z-index: 15; }
.theme-modern #ai-topsearch { flex-basis: 13rem; width: 13rem; min-width: 13rem; }

/* 楼层商品底框与卡片边界 */
.theme-modern .floor .module-goods-grid-base { padding: .6rem .6rem 1.2rem; }
.theme-modern .floor .module-goods-grid-base > ul { align-items: stretch; }
.theme-modern .floor .module-goods-grid-base > ul > li { display: flex; padding-bottom: .2rem; }
.theme-modern .floor .module-goods-grid-base .item { width: 100%; min-height: 100%; border: 1px solid #dce3ee !important; border-bottom: .2rem solid #d3dce9 !important; box-shadow: 0 .3rem 1rem rgba(24,34,48,.05); }
.theme-modern .floor .module-goods-grid-base .item:hover { border-color: #b7caf0 !important; border-bottom-color: var(--modern-primary) !important; }

@media (max-width: 767px) {
    /* 手机普通页脚改为紧凑信息区，PC 多列链接不再占据整屏 */
    .theme-modern .am-footer { margin-top: 2rem; padding: 2rem 1.6rem calc(9rem + env(safe-area-inset-bottom)); border-top: 0; background: #101b31; color: rgba(255,255,255,.66); text-align: left; }
    .theme-modern .am-footer .footer-nav-content { display: block; width: 100%; padding: 0; }
    .theme-modern .am-footer .footer-nav-list { display: none; }
    .theme-modern .am-footer .footer-about { float: none; width: 100%; padding: 0; }
    .theme-modern .am-footer .footer-about li { display: flex; align-items: center; gap: .8rem; margin: 0 0 .8rem; color: rgba(255,255,255,.68); font-size: 1.2rem; line-height: 1.8; }
    .theme-modern .am-footer .footer-about li i,
    .theme-modern .am-footer .footer-about li a { color: rgba(255,255,255,.82); }
    .theme-modern .am-footer .footer-about .qrcode { display: none; }
    .theme-modern .am-footer .am-footer-miscs { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); text-align: center; }
    .theme-modern .am-footer .friendship-list { display: none; }
    .theme-modern .am-footer .am-footer-miscs p,
    .theme-modern .am-footer .am-footer-miscs a { color: rgba(255,255,255,.5); font-size: 1.1rem; line-height: 1.8; }
    .theme-modern .modern-home-hero .banner-mixed { position: static; width: auto; height: auto; margin: 1.2rem; }
    .theme-modern .floor .module-goods-grid-base { padding: 0 1.2rem 1.2rem; }
    .theme-modern .floor .module-goods-grid-base .item { border: 0 !important; border-bottom: .2rem solid #dce3ee !important; }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .theme-modern .am-container { width: calc(100% - 3.2rem); }
}

@media (prefers-reduced-motion: reduce) {
    .theme-modern *,
    .theme-modern *::before,
    .theme-modern *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* 商品卡片统一视觉：图片、标题和金额 */
.theme-modern .module-goods-grid-base > ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.6rem; }
.theme-modern .module-goods-grid-base > ul::before,
.theme-modern .module-goods-grid-base > ul::after { display: none; }
.theme-modern .module-goods-grid-base > ul > li { width: auto; padding: 0; }
.theme-modern .module-goods-grid-base .item { height: 100%; padding: 1.2rem 1.2rem 1.6rem !important; border: 1px solid var(--modern-border); border-radius: var(--modern-radius-card) !important; background: var(--modern-surface); overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.theme-modern .module-goods-grid-base .item:hover { transform: translateY(-.5rem); border-color: #cbd9f4; box-shadow: var(--modern-shadow-hover); }
.theme-modern .module-goods-grid-base .item .goods-info { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; margin-bottom: 1.2rem; border-radius: 1rem; overflow: hidden; background: #f1f4f9; }
.theme-modern .module-goods-grid-base .item .goods-images { display: block; width: 100%; height: 100%; border-radius: 1rem !important; object-fit: cover; transition: transform .35s ease; }
.theme-modern .module-goods-grid-base .item:hover .goods-images { transform: scale(1.035); }
.theme-modern .module-goods-grid-base .item .price-content { padding: 0 .4rem; }
.theme-modern .module-goods-grid-base .item .goods-title { display: -webkit-box; min-height: 4.4rem; margin: .8rem 0 0; overflow: hidden; color: var(--modern-text); font-size: 1.4rem; font-weight: 500; line-height: 2.2rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
.theme-modern .module-goods-grid-base .item .goods-title a { color: inherit; }
.theme-modern .module-goods-grid-base .item .goods-title a:hover { color: var(--modern-primary); }
.theme-modern .module-goods-grid-base .item .price { display: flex; align-items: baseline; gap: .6rem; min-height: 3rem; margin: 0; color: var(--modern-danger) !important; }
.theme-modern .module-goods-grid-base .item .price strong { color: var(--modern-danger); font-family: Arial, "Microsoft YaHei", sans-serif; font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; }
.theme-modern .module-goods-grid-base .item .price .unit { color: var(--modern-text-muted) !important; font-size: 1.1rem; font-weight: 400; }
.theme-modern .module-goods-grid-base .item .original-price { color: var(--modern-text-muted); font-size: 1.2rem; font-weight: 400; text-decoration: line-through; }
.theme-modern .module-goods-grid-base .item .item-bottom { padding: 1rem .4rem 0 !important; }
.theme-modern .module-goods-grid-base .item .buy-btn { min-width: 7.2rem; min-height: 3.4rem; padding: .6rem 1.2rem; border-radius: 1.7rem; }
.theme-modern .module-goods-list-base .item { padding: 1.6rem; border: 1px solid var(--modern-border); border-radius: var(--modern-radius-card); background: var(--modern-surface); }
.theme-modern .module-goods-list-base .item .goods-info { border-radius: 1rem; overflow: hidden; background: #f1f4f9; }
.theme-modern .module-goods-list-base .item .goods-info img { width: 100%; height: 100%; object-fit: cover; }
.theme-modern .module-goods-list-base .item .detail-content { color: var(--modern-text); font-size: 1.5rem; font-weight: 600; line-height: 1.6; }
.theme-modern .module-goods-list-base .item .price { color: var(--modern-danger); font-size: 2.2rem; font-weight: 800; }

@media (min-width: 768px) and (max-width: 1100px) {
    .theme-modern .module-goods-grid-base > ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .theme-modern .module-goods-grid-base { padding: 0 1.2rem; }
    .theme-modern .module-goods-grid-base > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .theme-modern .module-goods-grid-base .item { padding: .8rem .8rem 1.2rem !important; border: 0; box-shadow: 0 .3rem 1.2rem rgba(24,34,48,.06); }
    .theme-modern .module-goods-grid-base .item .goods-info { margin-bottom: .8rem; border-radius: .8rem; }
    .theme-modern .module-goods-grid-base .item .goods-images { border-radius: .8rem !important; }
    .theme-modern .module-goods-grid-base .item .goods-title { min-height: 4rem; margin-top: .5rem; font-size: 1.3rem; line-height: 2rem; }
    .theme-modern .module-goods-grid-base .item .price strong { font-size: 1.9rem; }
    .theme-modern .module-goods-grid-base .item .original-price { display: none; }
    .theme-modern .mobile-navigation { position: fixed; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); left: 1rem; z-index: 1020; display: flex; width: auto; min-height: 6.4rem; padding: .5rem .6rem; border: 1px solid rgba(230,234,240,.9); border-radius: 1.8rem; background: rgba(255,255,255,.96); box-shadow: 0 1rem 3rem rgba(24,34,48,.16); backdrop-filter: blur(1.6rem); }
    .theme-modern .mobile-navigation li { position: relative; flex: 1; width: auto; min-width: 0; padding: 0; border: 0; background: transparent; text-align: center; }
    .theme-modern .mobile-navigation li a { display: flex; min-height: 5.4rem; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; border-radius: 1.3rem; color: var(--modern-text-muted); }
    .theme-modern .mobile-navigation li a > i.iconfont { display: block; width: 3rem; height: 2.8rem; font-size: 2.2rem; line-height: 2.8rem; }
    .theme-modern .mobile-navigation li a > p { max-width: 100%; overflow: hidden; font-size: 1.1rem; line-height: 1.5rem; text-overflow: ellipsis; white-space: nowrap; }
    .theme-modern .mobile-navigation li.active a { color: var(--modern-primary); background: var(--modern-primary-soft); font-weight: 600; }
    .theme-modern .mobile-navigation .hot-icon { top: .2rem; right: calc(50% - 2.3rem); left: auto; min-width: 1.7rem; height: 1.7rem; padding: 0 .4rem; font-size: 1rem; line-height: 1.7rem; }
    .theme-modern .body-content-formal-container { padding-bottom: calc(8.6rem + env(safe-area-inset-bottom)); }
}

/* 最终位置覆盖：必须位于全部详情规则之后，防止再次被 fixed 覆盖 */
@media (max-width: 767px) {
    .theme-modern .system-goods-detail .buy-nav { position: static !important; right: auto !important; bottom: auto !important; left: auto !important; z-index: auto !important; display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 42%) minmax(0, 1fr); width: auto; height: auto; min-height: 0; margin: 1.6rem 0 0; padding: 1rem; border: 1px solid var(--modern-border); border-radius: var(--modern-radius-card); background: #fff; box-shadow: var(--modern-shadow-sm); transform: none !important; }
    .theme-modern .system-goods-detail .buy-nav-opt { min-width: 0; overflow: visible; }
    .theme-modern .system-goods-detail .buy-submit-container { min-width: 0; }
}

/* 手机商品详情：顶部导航、左侧商城抽屉、右侧购买按钮 */
@media (max-width: 767px) {
    .theme-modern.index-goods-index { padding-top: 5.6rem; }
    .theme-modern .mobile-detail-topbar { position: fixed; top: 0; right: 0; left: 0; z-index: 1080; display: grid; grid-template-columns: 4.8rem minmax(0, 1fr) 4.8rem; align-items: center; height: 5.6rem; padding: 0 .8rem; border-bottom: 1px solid var(--modern-border); background: rgba(255,255,255,.97); box-shadow: 0 .3rem 1.2rem rgba(24,34,48,.06); backdrop-filter: blur(1.2rem); }
    .theme-modern .mobile-detail-back,
    .theme-modern .mobile-detail-menu-toggle { display: flex; width: 4rem; height: 4rem; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--modern-text-secondary); box-shadow: 0 .3rem 1rem rgba(24,34,48,.07); }
    .theme-modern .mobile-detail-menu-toggle { justify-self: end; }
    .theme-modern .mobile-detail-back i,
    .theme-modern .mobile-detail-menu-toggle i { font-size: 2rem; }
    .theme-modern .mobile-detail-tabs { display: flex; min-width: 0; align-items: center; justify-content: center; gap: .4rem; }
    .theme-modern .mobile-detail-tabs a { position: relative; padding: 1.8rem 1rem 1.5rem; color: var(--modern-text-secondary); font-size: 1.3rem; white-space: nowrap; }
    .theme-modern .mobile-detail-tabs a.active { color: var(--modern-primary); font-weight: 600; }
    .theme-modern .mobile-detail-tabs a.active::after { position: absolute; right: 1rem; bottom: .7rem; left: 1rem; height: .2rem; border-radius: .2rem; background: var(--modern-primary); content: ""; }
    .theme-modern .mobile-detail-drawer-mask { position: fixed; inset: 0; z-index: 1180; visibility: hidden; background: rgba(15,23,42,.5); opacity: 0; transition: opacity .22s ease, visibility .22s ease; }
    .theme-modern .mobile-detail-drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 1190; display: flex; width: min(82vw, 32rem); flex-direction: column; padding: 0; overflow: hidden; background: #fff; box-shadow: 1.4rem 0 3rem rgba(15,23,42,.18); transform: translateX(-105%); transition: transform .24s ease; }
    .theme-modern .drawer-open .mobile-detail-drawer-mask { visibility: visible; opacity: 1; }
    .theme-modern .drawer-open .mobile-detail-drawer { transform: translateX(0); }
    .mobile-detail-drawer-lock { overflow: hidden; }
    .theme-modern .mobile-detail-drawer-head { display: flex; min-height: 7rem; align-items: center; justify-content: space-between; padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--modern-border); }
    .theme-modern .mobile-detail-drawer-head strong { color: var(--modern-text); font-size: 1.5rem; }
    .theme-modern .mobile-detail-drawer-head p { margin-top: .2rem; color: var(--modern-text-muted); font-size: 1.1rem; }
    .theme-modern .mobile-detail-drawer-close { width: 3.6rem; height: 3.6rem; padding: 0; border: 0; border-radius: 50%; background: #f4f6f9; color: var(--modern-text); font-size: 2.2rem; line-height: 3.6rem; }
    .theme-modern .mobile-detail-quick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 1.4rem 1.6rem; }
    .theme-modern .mobile-detail-quick-links a { display: flex; min-height: 4.8rem; align-items: center; gap: 1rem; padding: 0 1.4rem; border: 1px solid var(--modern-border); border-radius: 1.2rem; color: var(--modern-text); font-size: 1.4rem; font-weight: 600; box-shadow: 0 .3rem 1rem rgba(24,34,48,.05); }
    .theme-modern .mobile-detail-quick-links i { color: #58708f; font-size: 1.8rem; }
    .theme-modern .mobile-detail-category { flex: 1; padding: 0 1.6rem 1.4rem; overflow-y: auto; }
    .theme-modern .mobile-detail-category h3,
    .theme-modern .mobile-detail-contact h3 { margin: 0 0 .8rem; color: var(--modern-text-secondary); font-size: 1.2rem; font-weight: 600; }
    .theme-modern .mobile-detail-category li { margin-bottom: .9rem; }
    .theme-modern .mobile-detail-category li a { display: flex; min-height: 4.2rem; align-items: center; justify-content: space-between; padding: 0 1.2rem; border: 1px solid var(--modern-border); border-radius: 2.1rem; color: var(--modern-text); font-size: 1.3rem; font-weight: 600; }
    .theme-modern .mobile-detail-category li em { color: #71819a; font-size: 1.1rem; font-weight: 400; }
    .theme-modern .mobile-detail-contact { padding: 1.2rem 1.6rem calc(1.2rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--modern-border); background: #f7f9fc; }
    .theme-modern .mobile-detail-contact a { display: inline-flex; align-items: center; gap: .5rem; margin: .4rem .6rem .2rem 0; padding: .5rem 1rem; border: 1px solid var(--modern-border); border-radius: 1.6rem; background: #fff; color: var(--modern-text-secondary); font-size: 1.1rem; }

    /* 左侧快捷入口保持原业务，购买按钮固定在操作区最右边 */
    .theme-modern .system-goods-detail .buy-nav { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; }
    .theme-modern .system-goods-detail .buy-nav-opt { grid-column: 1; justify-self: start; }
    .theme-modern .system-goods-detail .buy-submit-container { grid-column: 2; display: flex; width: auto; justify-content: flex-end; justify-self: stretch; }
    .theme-modern .system-goods-detail .buy-submit-container .am-btn { flex: 0 1 18rem; width: min(18rem, 100%); }
    .theme-modern .system-goods-detail .buy-nav::after { display: none; content: none; }
}
