body.uc-body { background: #f2f7fc !important; }
[data-theme="dark"] body.uc-body { background: #101a2a !important; }
.shop-brand img, .shop-drawer__brand img { object-fit: contain; }
.shop-brand__name { font-size: clamp(15px, 1.4vw, 20px); }
.uc-topbar__inner { max-width: 1456px; }
.shop-nav__list { flex: 0 0 auto; }
.shop-nav__item { white-space: nowrap; padding-inline: clamp(8px, .78vw, 12px); font-size: 13px; height: 38px; }
.shop-nav__item.hmg-matrix-link { background: rgba(var(--md-primary-rgb), .06); color: var(--uc-ink); }
.shop-nav__item.hmg-matrix-link:hover { background: rgba(var(--md-primary-rgb), .12); }
.hmg-matrix-short { display: none; }
.shop-nav__right { gap: 4px; }
.hmg-ai-tools { position: relative; }
.hmg-ai-summary { cursor: pointer; list-style: none; }
.hmg-ai-summary::-webkit-details-marker { display: none; }
.hmg-ai-summary::after {
    content: ""; width: 6px; height: 6px; flex: none;
    border: solid currentColor; border-width: 0 1.5px 1.5px 0;
    transform: translateY(-2px) rotate(45deg);
}
.hmg-ai-tools[open] > .hmg-ai-summary::after { transform: translateY(1px) rotate(225deg); }
.hmg-ai-tools[open] > .hmg-ai-summary { background: rgba(var(--md-primary-rgb), .08); color: var(--uc-ink); }
.hmg-ai-links { margin: 4px 0 0; padding: 5px; list-style: none; }
.shop-nav .hmg-ai-links {
    position: absolute; inset-inline-end: 0; top: 100%; z-index: 1; min-width: 170px;
    border: 1px solid var(--glass-border); border-radius: 14px; background: var(--glass-bg-strong);
    box-shadow: var(--glass-shadow); backdrop-filter: var(--glass-filter);
}
.hmg-ai-links a {
    display: block; padding: 10px 12px; border-radius: 9px;
    white-space: nowrap; color: var(--uc-ink); font-size: 13px;
}
.hmg-ai-links a:hover, .hmg-ai-links a:focus-visible { background: rgba(var(--md-primary-rgb), .08); }
.shop-drawer .hmg-ai-links, .editorial-menu .hmg-ai-links { padding-inline-start: 15px; }
.hmg-tg-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hmg-tg-link:hover { color: var(--uc-primary-deep); }
.hmg-wechat-qr { width: fit-content; margin: 14px 0 0; text-align: center; color: var(--uc-ink-med); font-size: 12px; }
.hmg-wechat-qr img { display: block; width: 144px; height: auto; border-radius: 10px; background: #fff; }
.hmg-wechat-qr figcaption { margin-top: 5px; }
@media (max-width: 1440px) {
    .shop-nav .shop-search { display: none; }
}
@media (max-width: 1440px) {
    .shop-nav { gap: 7px; }
    .shop-nav__item { padding-inline: 8px; }
    .hmg-matrix-full { display: none; }
    .hmg-matrix-short { display: inline; }
}
@media (max-width: 1320px) {
    .shop-nav .shop-brand__name { font-size: 16px; }
    .shop-nav .shop-icon-btn { width: 34px; }
}
.hmg-order .status-paid { color: #087953; background: #d8f6e9; }
.hmg-order .card-display { overflow-wrap: anywhere; }
.hmg-shop, .hmg-order { max-width: 1480px; }
.hmg-hero {
    padding: clamp(22px, 3.4vw, 50px);
    border-radius: 22px;
    background: linear-gradient(112deg, #c9f3ee, #bee4fa 52%, #cadbff);
    color: #102344;
}
.hmg-hero h1 { font-size: clamp(27px, 3vw, 46px); font-weight: 800; margin-bottom: 9px; }
.hmg-hero p { font-size: clamp(14px, 1.2vw, 18px); margin-bottom: 16px; }
.hmg-search { display: flex; gap: 9px; max-width: 600px; }
.hmg-search input { min-width: 0; }
.hmg-search button { white-space: nowrap; }
.hmg-notice { margin: 18px 0; }
.hmg-notice summary { padding: 12px 16px; cursor: pointer; }
.hmg-notice .panel-body { border-top: 1px solid var(--bs-border-color, #d5e1ef); }
.hmg-catalogue { display: grid; grid-template-columns: minmax(190px, 235px) minmax(0, 1fr); gap: 18px; align-items: start; }
.hmg-category .chip-list { display: grid; gap: 6px; }
.hmg-category .chip {
    width: 100%; min-height: 36px; height: auto; padding: 8px 11px;
    gap: 8px; justify-content: flex-start; align-items: center;
    border-radius: 12px; white-space: normal; line-height: 1.35;
}
.hmg-category .chip-icon { flex-shrink: 0; }
.hmg-category .chip-label { min-width: 0; overflow-wrap: anywhere; text-align: left; }
.hmg-category .chip-note { display: block; margin-top: 2px; font-size: 11px; opacity: .82; }
.hmg-category summary { padding: 13px 15px; font-weight: 700; }
.hmg-category-controls { display: none; }
.hmg-contact .panel-body { padding: clamp(18px, 3vw, 30px); }
.hmg-contact h2 { font-size: clamp(18px, 2vw, 23px); line-height: 1.45; margin-bottom: 8px; }
.hmg-contact p { color: var(--uc-ink-med); }
.hmg-contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.hmg-contact-wechat { color: var(--uc-ink); user-select: all; margin-left: 4px; }
.hmg-contact-status { margin: 8px 0 0; font-size: 13px; }
.hmg-contact-status:empty { margin: 0; }
.hmg-catalogue [hidden] { display: none !important; }
.hmg-catalogue .item-list {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0;
}
.hmg-catalogue .item-card-cell { width: auto; min-width: 0; padding: 0; margin: 0; }
.hmg-catalogue .acg-card { height: 100%; min-height: 148px; border-radius: 14px; }
.hmg-catalogue .goods-title { font-size: 16px; overflow-wrap: anywhere; }
.hmg-catalogue .price { font-size: 23px; }
.hmg-catalogue .stat-bottom, .item-buy .item-stock { display: none !important; }
.hmg-catalogue .item-message { grid-column: 1 / -1; }
.hmg-order .order-item { border-radius: 16px; }
.hmg-order .order-no { overflow-wrap: anywhere; }
.hmg-claim-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
[data-theme="dark"] .hmg-hero { background: linear-gradient(112deg,#163d46,#183960,#283e70); color: #f1f7ff; }
@media (max-width: 1060px) {
    .hmg-catalogue .item-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
    .hmg-catalogue { grid-template-columns: minmax(0,1fr); gap: 10px; }
    .hmg-category .chip-list { display: flex; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
    .hmg-category .chip { width: auto; max-width: 185px; flex: none; }
    .hmg-category-controls {
        display: flex; align-items: center; justify-content: space-between; gap: 10px;
        padding-top: 6px; font-size: 12px; color: var(--uc-ink-med);
    }
    .hmg-category-hint { line-height: 1.4; }
    .hmg-category-toggle {
        padding: 6px 10px; min-height: 34px; white-space: nowrap; border-radius: 9px;
        border: 1px solid var(--glass-border); background: rgba(var(--md-primary-rgb), .08);
        color: var(--uc-ink); font: inherit; font-weight: 700;
    }
    .hmg-category-expanded .chip-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
    .hmg-category-expanded .chip { width: 100%; max-width: none; }
    .hmg-category-expanded .hmg-category-hint { visibility: hidden; }
}
@media (max-width: 470px) {
    .hmg-catalogue .item-list { grid-template-columns: minmax(0,1fr); }
    .hmg-catalogue .acg-card { min-height: 0; }
    .hmg-order .order-header, .hmg-order .order-left { flex-wrap: wrap; }
    .hmg-order .order-query-form .d-flex > div:first-child { width: auto !important; min-width: 0; flex: 1; }
}
