/* Shared detail hierarchy. Existing BR palette, typography and Arco controls. */
.detail-workspace,.catalog-detail-page{min-width:0;display:flex;flex-direction:column;gap:12px}
.detail-object-header{min-width:0;height:auto;min-height:0;color:var(--color-text-1);z-index:auto;align-items:stretch;border:1px solid var(--color-border-2);background:var(--color-bg-2);border-radius:8px;padding:14px 18px;display:flex;flex-direction:column;gap:14px}
.detail-object-topline{display:flex;align-items:center;gap:12px;min-width:0;overflow-x:auto;white-space:nowrap;padding-bottom:2px}
.detail-object-topline>*{flex-shrink:0}
.detail-object-topline .toolbar-tail{display:flex;flex-wrap:nowrap;gap:8px;width:auto;margin-left:auto;flex-shrink:0}
.detail-object-kind{font-weight:600;color:var(--color-text-2);font-size:13px}
.detail-object-main{display:flex;align-items:center;gap:16px;min-width:0}
.detail-object-titles{display:flex;flex-direction:column;gap:14px;min-width:0;flex:1}
.detail-object-picture{border:1px solid var(--color-border-2);border-radius:6px;background:var(--color-fill-1);width:64px;height:64px;flex:none;display:grid;place-items:center;padding:4px;color:var(--color-text-3);cursor:zoom-in}
.detail-object-picture:disabled{cursor:default}
.detail-object-picture img{width:54px;height:54px;object-fit:contain}
.detail-object-heading{flex:1;min-width:0}
.detail-object-heading h2{font-size:18px;line-height:28px;font-weight:600;margin:0 0 6px;white-space:nowrap;overflow-x:auto}
.detail-object-meta{display:flex;align-items:center;gap:16px;font-size:12px;line-height:24px;white-space:nowrap;overflow-x:auto;color:var(--color-text-3)}
.detail-object-meta>*{flex-shrink:0}
.detail-object-meta b{font-weight:500;color:var(--color-text-2)}
.detail-section-tabs,.catalog-detail-page .catalog-detail-switch,.merch-detail-page .merch-tabs{display:flex;gap:6px;min-width:0;margin:0;padding:0 0 8px;overflow-x:auto;border-bottom:1px solid var(--color-border-2);white-space:nowrap}
.detail-section-tabs>.arco-btn{flex:none;white-space:nowrap;min-height:34px}
.detail-content-card,.detail-store-panel>.card{background:var(--color-bg-2);border:1px solid var(--color-border-2);border-radius:8px;padding:18px;margin:0;min-width:0}
.detail-workspace>.card{background:var(--color-bg-2);border:1px solid var(--color-border-2);border-radius:8px}
.merch-detail-page>.card .merch-section-head:first-child{margin-top:0}
.detail-section-title{display:flex;align-items:center;gap:12px;min-width:0;overflow-x:auto;white-space:nowrap;margin:0 0 16px;min-height:32px}
.detail-section-title h3{font-size:14px;font-weight:600;margin:0;flex-shrink:0}
.detail-section-title>.arco-btn{margin-left:auto;flex-shrink:0}
.detail-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0 0 24px;padding:0 0 20px;border-bottom:1px solid var(--color-border-2)}
.detail-facts>div{min-width:0;overflow-x:auto}
.detail-facts dt{font-size:12px;color:var(--color-text-3);margin:0 0 8px;white-space:nowrap}
.detail-facts dd{margin:0;color:var(--color-text-1);white-space:nowrap}
.br-product-detail .warehouse-chips{overflow-x:auto;white-space:nowrap;flex-wrap:nowrap;padding-bottom:8px}
.br-product-detail .warehouse-chips>div{flex-shrink:0}
.br-product-detail .product-cost-section>.br-currency-switch{margin-bottom:14px}
.br-product-detail .br-data-table{min-width:0}
.detail-store-panel .store-products>h2{display:none}
.detail-store-panel .store-group{border:1px solid var(--color-border-2);border-radius:6px;margin:12px 0;overflow:hidden}
.detail-store-panel .store-group-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 14px;background:var(--color-fill-1);cursor:pointer;list-style:none}
.detail-store-panel .store-group-head:before{content:'›';color:var(--color-text-3);font-size:18px}
.detail-store-panel details[open]>.store-group-head:before{transform:rotate(90deg)}
.detail-store-panel .store-group-head>b{margin-right:auto}
.detail-store-panel .store-spu{padding:16px;margin:0;border-top:1px solid var(--color-border-2)}
.detail-store-panel .store-spu-main{min-width:0;overflow-x:auto;white-space:nowrap}
.detail-store-panel .store-spu-info strong{white-space:nowrap}
.detail-store-panel .store-sku-details{margin-top:12px}
.detail-store-panel .store-sku-details summary{white-space:nowrap;cursor:pointer;min-height:32px;line-height:32px}
.detail-related{display:flex;align-items:center;gap:8px;white-space:nowrap;overflow-x:auto;font-size:12px;color:var(--color-text-3);min-width:0}
.detail-related>*{flex-shrink:0}
.detail-related>.arco-btn{font-size:12px}
.catalog-detail-page .catalog-metadata{margin:0!important}
.catalog-detail-page .catalog-supply-heading{display:list-item;list-style-position:inside;font-size:14px;white-space:nowrap;cursor:pointer;line-height:30px;margin:0}
.catalog-detail-page .catalog-metadata[open] .catalog-supply-heading{margin-bottom:14px}
.catalog-detail-page .detail-source-disclosure{grid-column:1/-1;min-width:0;border-top:1px solid var(--color-border-2);padding-top:10px}
.detail-source-disclosure .catalog-meta-row{margin-top:10px}
.catalog-detail-page .detail-history{margin:0;padding:12px 16px;border:1px solid var(--color-border-2);border-radius:8px;background:var(--color-bg-2)}
.detail-history .catalog-section-tools{margin-top:12px}
.catalog-detail-page .catalog-detail-tabs{margin:0}
.detail-object-header .arco-btn,.detail-content-card .arco-btn{white-space:nowrap}
@media(max-width:1000px){.detail-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
.detail-object-meta{gap:12px}
.detail-object-topline .toolbar-tail{margin-left:0}}
@media(max-width:600px){.detail-object-header{padding:12px;gap:12px}
.detail-object-heading h2{font-size:16px}
.detail-object-picture{width:52px;height:52px}
.detail-object-picture img{width:42px;height:42px}
.detail-content-card,.detail-store-panel>.card{padding:14px}
.detail-facts{grid-template-columns:1fr;gap:14px}
.detail-section-tabs>.arco-btn{min-height:38px}
.detail-store-panel .store-spu{padding:12px}}
.detail-section-title>.toolbar-tail{flex:none;width:auto;margin-left:auto}
.detail-section-title>.toolbar-tail>*{flex-shrink:0}
/* Compact product identity and the existing three detail destinations — unified Astryx 16px surface. */
.store-detail-workspace{gap:14px}
.store-detail-workspace>.store-detail-header{padding:14px 20px 0;gap:10px;border-radius:16px;border:1px solid rgba(0,0,0,.08);box-shadow:0 1px 2px rgba(0,0,0,.04);position:relative;overflow:visible}
.store-detail-header .detail-object-topline{overflow:visible;font-size:12px;gap:10px;padding-bottom:0}
.store-detail-header .detail-object-topline .toolbar-tail{margin-left:auto}
.store-header-divider{width:1px;height:14px;background:rgba(0,0,0,.1);flex:none}
.store-header-shop{font-size:12px;font-weight:600;color:#111;white-space:nowrap}
.store-detail-cover{width:64px;height:64px;border-radius:10px;background:#fff;border-color:rgba(0,0,0,.08)}
.store-detail-cover img{width:54px;height:54px}
.store-detail-header .detail-object-titles{gap:4px;overflow:hidden}
.store-detail-header h2{font-size:16px;line-height:24px;font-weight:600;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#111;letter-spacing:-.01em}
.store-header-translation{font-size:12px;line-height:19px;color:#6a6a6a;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.store-detail-header .detail-object-meta{gap:14px;font-size:11px;line-height:18px;color:#86909c}
/* 顶部核心摘要指标带 */
.store-detail-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));margin:4px -20px 0;border-top:1px solid rgba(0,0,0,.06);background:#fafafa;border-radius:0 0 16px 16px;overflow-x:auto}
.store-detail-kpis article{padding:11px 20px;border-right:1px solid rgba(0,0,0,.06);min-width:0;display:flex;flex-direction:column;gap:3px}
.store-detail-kpis article:last-child{border-right:0}
.store-detail-kpis span{font-size:11px;color:#6a6a6a;white-space:nowrap}
.store-detail-kpis strong{font-size:15px;line-height:22px;font-weight:600;color:#111;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:6px}
.store-detail-kpis strong.is-accent{color:#165dff}
.store-detail-kpis strong small{font-size:11px;font-weight:400;color:#86909c}
.store-kpi-supply{flex-wrap:nowrap;overflow-x:auto}
.store-kpi-supply-link{border:1px solid rgba(0,0,0,.08);background:#fff;color:#165dff;border-radius:6px;padding:1px 7px;font:inherit;font-size:11px;font-weight:500;line-height:18px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;cursor:pointer;white-space:nowrap;flex:none;transition:border-color .15s ease,background .15s ease}
.store-kpi-supply-link:hover{background:#eef3ff;border-color:#94bfff}
.store-detail-kpis .store-kpi-clickable{cursor:pointer;transition:background .15s ease}
.store-detail-kpis .store-kpi-clickable:hover{background:#f2f6ff}
.store-detail-workspace>.store-detail-nav{align-self:flex-start;max-width:100%;margin:0;overflow-x:auto;white-space:nowrap;background:#e8e9ec}
/* 商品图紧凑画廊 + 结构化属性网格 */
.store-media-card,.store-sku-card,.store-desc-card{padding:18px 20px!important;border-radius:16px!important;border:1px solid rgba(0,0,0,.08)!important;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.store-media-card>.merch-section-head,.store-sku-card>.merch-section-head,.store-desc-card>.merch-section-head{margin:0 0 14px}
.store-media-card>.merch-section-head>.toolbar-tail,.store-sku-card>.merch-section-head>.toolbar-tail,.store-desc-card>.merch-section-head>.toolbar-tail{margin-left:auto;display:flex;align-items:center;gap:8px}
.store-gallery-grid{display:flex;flex-wrap:wrap;gap:10px;min-width:0;flex:1}
.store-gallery-item{flex:0 0 auto}
.store-gallery-item>button{position:relative;width:104px;height:104px;padding:4px;border:1px solid rgba(0,0,0,.08);border-radius:10px;background:#fafafa;display:flex;align-items:center;justify-content:center;cursor:zoom-in;overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.store-gallery-item>button:hover{border-color:#94bfff;box-shadow:0 4px 12px rgba(22,93,255,.1);transform:translateY(-1px)}
.store-gallery-item>button:disabled{cursor:default;transform:none;box-shadow:none}
.store-gallery-item>button>img{width:100%;height:100%;object-fit:contain;border-radius:6px}
.store-gallery-badge{position:absolute;top:5px;left:5px;font-size:10px;line-height:16px;padding:0 5px;border-radius:4px;background:rgba(22,93,255,.9);color:#fff;font-weight:600}
.store-gallery-index{position:absolute;bottom:4px;right:5px;font-size:10px;line-height:15px;padding:0 4px;border-radius:4px;background:rgba(17,24,39,.55);color:#fff;font-variant-numeric:tabular-nums}
.store-attr-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:16px;padding-top:14px;border-top:1px solid rgba(0,0,0,.06)}
.store-attr-item{display:flex;flex-direction:column;gap:5px;min-width:0}
.store-attr-item.is-wide{grid-column:span 2}
.store-attr-item>label{font-size:11px;color:#6a6a6a;white-space:nowrap}
.store-attr-item>strong{font-size:13px;font-weight:600;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.store-attr-cat .store-inline-pair{margin-bottom:2px;font-size:12px}
/* SKU 表内供货排列与紧凑风格统一 */
.store-sku-card .br-data-table{border:1px solid #eef0f3!important;border-radius:8px!important;box-shadow:none!important}
.store-sku-card .br-data-table .arco-table-th{background:#f7f8fa!important;color:#526176!important;font-size:11px!important;font-weight:600!important;padding:7px 10px!important;height:34px!important;border-bottom:1px solid #eef0f3!important}
.store-sku-card .br-data-table .arco-table-td,.store-sku-card .br-data-table .arco-table-tr:nth-child(even) .arco-table-td{height:auto!important;padding:7px 10px!important;font-size:12px!important;line-height:18px!important;color:#1d2939!important;background:#fff!important;border-bottom:1px solid #f2f3f5!important;font-variant-numeric:tabular-nums}
.store-sku-card .br-data-table .arco-table-td::before,.store-sku-card .br-data-table .arco-table-th::before{background:transparent!important}
.store-sku-card .br-data-table .arco-table-tr:last-child .arco-table-td{border-bottom:0!important}
.store-sku-card .br-data-table .arco-table-tr:hover .arco-table-td{background:#f7f9fc!important}
.store-sku-supply-cell{display:flex;flex-direction:column;gap:2px}
.store-sku-supply-item{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.store-sku-supply-item small{color:#6a6a6a;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}
/* 商品描述双栏折叠阅读 */
.store-desc-card .store-copy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;position:relative}
.store-desc-card .store-copy-grid>div{background:#fafafa;border:1px solid rgba(0,0,0,.06);border-radius:12px;padding:14px 16px;min-width:0}
.store-desc-card .store-copy-grid.is-collapsed .store-description{max-height:220px;overflow:hidden;-webkit-mask-image:linear-gradient(to bottom,#000 72%,transparent 100%);mask-image:linear-gradient(to bottom,#000 72%,transparent 100%)}
.store-desc-card .store-description{font-size:13px;line-height:1.68;color:#374151;word-break:break-word}
/* 表现明细 KPI 概览与表格升级 */
.store-perf-kpis{display:grid;grid-template-columns:repeat(6,minmax(110px,1fr));gap:10px;margin:0 0 18px;overflow-x:auto}
.store-perf-kpis article{padding:12px 14px;border:1px solid rgba(0,0,0,.08);border-radius:12px;background:#fafafa;min-width:0;display:flex;flex-direction:column;gap:4px}
.store-perf-kpis span{font-size:11px;color:#6a6a6a;white-space:nowrap}
.store-perf-kpis strong{font-size:18px;line-height:24px;font-weight:700;color:#111;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.02em}
.store-perf-kpis article.is-accent{background:#f2f6ff;border-color:#d6e4ff}
.store-perf-kpis article.is-accent strong{color:#165dff}
.store-channel-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px;background:#86909c;vertical-align:middle}
.store-perf-total{background:#f4fbf7}
.store-perf-total .store-channel-dot{background:#009a29}
.store-perf-gmv_max .store-channel-dot{background:#722ed1}
.store-perf-card .store-channel-dot{background:#165dff}
.store-perf-affiliate .store-channel-dot,.store-perf-affiliate_video .store-channel-dot,.store-perf-affiliate_live .store-channel-dot{background:#3491fa}
.store-perf-seller_video .store-channel-dot,.store-perf-seller_live .store-channel-dot{background:#ff7d00}
.store-perf-shop_tab .store-channel-dot{background:#14c9c9}
.store-perf-table .store-perf-row:not(.store-perf-head):not(.store-perf-day-head):hover{background:rgba(0,0,0,.025)}
.store-related-plans{position:relative;flex:none;white-space:nowrap;font-size:12px}
.store-related-plans summary{display:flex;align-items:center;gap:6px;cursor:pointer;padding:6px 8px;list-style:none;color:var(--color-text-2)}
.store-related-plans summary::-webkit-details-marker{display:none}
.store-related-plans>div{position:absolute;right:0;top:100%;width:min(480px,calc(100vw - 100px));max-height:240px;overflow:auto;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.08);padding:6px;z-index:20}
.store-related-plans button{display:block;width:100%;font:inherit;text-align:left;border:0;border-radius:8px;background:transparent;padding:8px 10px;white-space:nowrap;overflow-x:auto;cursor:pointer;color:#111}
.store-related-plans button:hover{background:#f6f6f6}
.store-detail-workspace>.store-perf{padding:18px 20px;border-radius:16px;border:1px solid rgba(0,0,0,.08);box-shadow:0 1px 2px rgba(0,0,0,.04)}
.store-perf-toolbar,.store-perf-trend-head,.store-perf-summary-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin:0 0 14px;white-space:nowrap}
.store-perf-toolbar .toolbar-tail,.store-perf-trend-head .toolbar-tail{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;max-width:100%;overflow-x:auto}
.store-perf-trend-head strong,.store-perf-summary-head strong{font-size:14px;font-weight:600}
.store-perf-summary-head{margin-top:20px}
.store-perf .store-ads-definitions{margin-top:18px;border-width:1px 0 0;padding:12px 0 0;border-radius:0}
@media(max-width:1100px){.store-attr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.store-attr-item.is-wide{grid-column:span 2}
.store-perf-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
.store-desc-card .store-copy-grid{grid-template-columns:1fr}}
@media(max-width:600px){.store-detail-workspace>.store-detail-header{padding:10px 12px 0}
.store-detail-header .detail-object-topline{flex-wrap:wrap;gap:8px}
.store-detail-header .store-header-shop{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.store-detail-header .detail-object-topline .toolbar-tail{width:100%;justify-content:flex-start;overflow-x:auto;padding-bottom:2px;position:relative}
.store-detail-kpis{grid-template-columns:1fr;margin:4px -12px 0}
.store-detail-kpis article{padding:8px 12px}
.store-detail-nav{max-width:100%;overflow-x:auto}
.store-supply-bar{flex-wrap:wrap;gap:8px;padding:10px 12px!important}
.store-related-plans{position:static}
.store-related-plans>div{width:100%}
.store-gallery-item>button{width:84px;height:84px}
.store-attr-grid{grid-template-columns:1fr}
.store-attr-item.is-wide{grid-column:span 1}
.store-perf-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
.store-detail-workspace>.store-perf{padding:12px}
.store-perf-toolbar{flex-wrap:wrap}
.store-perf-trend-head{flex-wrap:wrap;gap:10px}
.store-perf-toolbar>.muted{font-size:11px}
.store-perf-trend-head .toolbar-tail{width:100%;justify-content:flex-end}}
