/* Brand product search matches the product-center capsule. */
.brand-product-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.brand-product-heading h2 { flex: none; margin: 0; font-size: 24px; line-height: 1.4; color: #28223e; font-weight: 600; }
.brand-product-search { display: flex; align-items: center; gap: 6px; width: 390px; max-width: 100%; padding: 4px; border: 1px solid var(--ali-glass-edge, #e5dcf4); border-radius: 999px; background: #faf7ffeb; box-shadow: var(--ali-glass-shadow); }
.brand-product-search input[type=search] { min-width: 0; flex: 1; width: 100%; border: 0; outline: none; box-shadow: none; appearance: none; background: transparent; padding: 7px 10px; font: inherit; font-size: 13px; color: #3a4241; }
.brand-product-search button { border: 1px solid #7d49df; background: #7d49df; color: white; border-radius: 999px; padding: 7px 20px; font-size: 13px; line-height: 22px; white-space: nowrap; cursor: pointer; box-shadow: var(--ali-glass-raised); }
.brand-product-search:focus-within { border-color: #b491e8; box-shadow: var(--ali-glass-glow); }
.brand-product-search button:focus-visible, .brand-product-search-status a:focus-visible { outline: 2px solid #7d49df; outline-offset: 3px; }
.brand-product-search-status { margin: -8px 0 18px; color: var(--ali-muted); font-size: 13px; overflow-wrap: anywhere; }
.brand-product-search-status a { display: inline-block; margin-left: 12px; color: #6530c6; }
@media (max-width: 640px) {
  .brand-product-heading { align-items: stretch; flex-direction: column; gap: 14px; margin-bottom: 18px; }
  .brand-product-heading h2 { font-size: 23px; }
  .brand-product-search { width: 100%; }
  .brand-product-search input[type=search] { font-size: 14px; }
  .brand-product-search button { padding: 6px 18px; font-size: 12px; }
}
/* Brand details only: inherits homepage tokens and never loads on the homepage.
 * Current UI spec V1.6: new components use solid surfaces, with highlight/shadow depth. */
.brand-page{padding-block:var(--ali-section-space,20px);min-height:65vh}.brand-breadcrumb{display:flex;flex-wrap:wrap;gap:8px;font-size:12px;color:var(--ali-muted);margin-bottom:28px;overflow-wrap:anywhere}.brand-breadcrumb a:hover{color:var(--ali-purple)}.brand-test-notice{padding:10px 14px;background:#f5f2fc;border-left:3px solid var(--ali-purple);font-size:12px;color:#645674;margin-bottom:24px}.brand-layout{display:grid;grid-template-columns:216px minmax(0,1fr);gap:38px;align-items:start}.brand-sidebar{position:sticky;top:24px;min-width:0}.brand-sidebar h1{font-size:25px;line-height:1.45;letter-spacing:-.015em;color:#28223e;overflow-wrap:anywhere;padding-bottom:23px;border-bottom:1px solid var(--ali-glass-edge,#e5dcf4);margin-bottom:20px}.brand-sections{display:flex;flex-direction:column;gap:10px}.brand-sections a{display:block;padding:12px 16px;border:1px solid var(--ali-glass-edge,#e5dcf4);border-radius:12px;background:var(--ali-glass-surface,#ffffffd1);box-shadow:var(--ali-glass-raised);color:#6033b3;font-size:14px;font-weight:500;overflow-wrap:anywhere;transition:border-color .2s,box-shadow .2s}.brand-sections a:hover,.brand-sections a:focus-visible{border-color:#b491e8;box-shadow:var(--ali-glass-glow)}.brand-sections a[aria-current=page]{color:#fff;background:#7542e8;border-color:#7946d5;box-shadow:0 4px 12px #7955b124}.brand-panel{min-width:0;padding-left:30px;border-left:1px solid #eee8f6}.brand-panel>h2{font-size:24px;line-height:1.4;color:#28223e;margin:0 0 26px;font-weight:600}.brand-detail-logo{margin:0 0 20px;max-width:230px}.brand-detail-logo img{display:block;max-height:130px;width:auto;object-fit:contain}.brand-website{display:inline-flex;margin:0 0 24px;font-size:12px}.brand-richtext{max-width:100%;overflow-wrap:anywhere}.brand-richtext img{height:auto;max-width:100%}.brand-richtext figure{max-width:100%}.brand-empty{padding:36px 20px;background:#faf9fc;border:1px solid #eee8f6;border-radius:12px;font-size:14px;color:var(--ali-muted)}
.brand-table-scroll{max-width:100%;overflow:auto;border-radius:12px;border:1px solid #e9e7ef}.brand-products{width:100%;min-width:600px;border-collapse:collapse;table-layout:fixed;font-size:13px;text-align:left}.brand-products col:nth-child(1){width:42%}.brand-products col:nth-child(2){width:22%}.brand-products col:nth-child(3){width:18%}.brand-products col:nth-child(4){width:18%}.brand-products th{padding:14px 16px;background:#efebfd;font-size:13px;color:#514465;font-weight:600}.brand-products td{padding:15px 16px;line-height:1.7;overflow-wrap:anywhere;vertical-align:top}.brand-products tbody tr:nth-child(odd){background:#f7f8fa}.brand-products tbody tr:nth-child(even){background:#eceef2}.brand-products td:first-child a{color:#4e2d8e;font-weight:600}.brand-products td:first-child a:hover{text-decoration:underline}.brand-pagination{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;margin-top:24px;font-size:12px;color:var(--ali-muted)}.brand-pagination nav{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.brand-pagination .page-numbers{display:inline-flex;min-width:34px;min-height:34px;align-items:center;justify-content:center;padding:5px 10px;border:1px solid var(--ali-glass-edge,#e5dcf4);border-radius:9px;background:#fff;color:#6033b3;font-weight:500}.brand-pagination .page-numbers.current{background:var(--ali-purple);border-color:var(--ali-purple);color:#fff;font-weight:500}.brand-pagination a:hover{box-shadow:var(--ali-glass-glow);border-color:#b491e8}.brand-pagination .dots{border-color:transparent;padding-inline:0;min-width:16px}
.brand-articles{display:flex;flex-direction:column;gap:18px}.brand-article{display:flex;gap:22px;padding:18px;border:1px solid #eee6fa;border-radius:12px;background:#fff;box-shadow:0 4px 18px #7955b114;transition:background .2s,border-color .2s}.brand-article:hover{background:#fff8f1;border-color:#f3d8be}.brand-article-image{flex:0 0 30%;align-self:flex-start;min-width:0}.brand-article-image img{display:block;width:100%;aspect-ratio:900/383;object-fit:contain}.brand-article-copy{flex:1;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 18px;align-content:start;align-items:start}.brand-article h3{font-size:16px;line-height:1.65;overflow-wrap:anywhere;color:#352b49}.brand-article-copy p{grid-column:1/-1;font-size:13px;line-height:1.85;color:#737489;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.brand-more.action-link{font-size:12px;min-height:32px;padding:6px 14px;white-space:nowrap;align-self:start}.brand-resources{list-style:none;margin:0;padding:0}.brand-resources li{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:22px 0;border-bottom:1px solid #ece7f3}.brand-resources li:first-child{padding-top:4px}.brand-resource-title{font-size:15px;color:#3f354f;overflow-wrap:anywhere;min-width:0}.brand-resource-title:hover{color:var(--ali-purple)}.brand-resources .brand-more{flex-shrink:0}
@media(max-width:1024px){.brand-layout{grid-template-columns:180px minmax(0,1fr);gap:24px}.brand-panel{padding-left:24px}.brand-sidebar h1{font-size:23px}.brand-article{gap:15px;padding:15px}.brand-article-copy{gap:10px}.brand-article h3{font-size:14px}.brand-article-image{flex-basis:28%}}
@media(max-width:767px){.brand-layout{grid-template-columns:1fr;gap:26px}.brand-sidebar{position:static}.brand-sidebar h1{font-size:25px;margin-bottom:18px;padding-bottom:18px}.brand-sections{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.brand-sections a{padding:10px 6px;text-align:center;font-size:12px}.brand-panel{border-left:0;padding-left:0}.brand-panel>h2{font-size:22px;margin-bottom:20px}}
@media(max-width:640px){.brand-page{padding-block:var(--ali-section-space,14px)}.brand-breadcrumb{font-size:11px;margin-bottom:20px;gap:6px}.brand-test-notice{font-size:11px;margin-bottom:20px}.brand-sections{grid-template-columns:repeat(2,minmax(0,1fr))}.brand-sections a{padding:11px 10px}.brand-sidebar h1{font-size:23px}.brand-panel>h2{font-size:21px}.brand-article{flex-direction:column;gap:13px;padding:14px}.brand-article-image{width:100%;flex-basis:auto}.brand-article-copy{width:100%;gap:10px}.brand-article h3{font-size:14px}.brand-article-copy p{font-size:12px}.brand-more.action-link{font-size:11px;padding:6px 11px;min-height:30px}.brand-pagination{gap:12px;font-size:11px;margin-top:20px}.brand-pagination .page-numbers{min-width:31px;min-height:32px;padding:4px 9px}.brand-resources li{gap:12px;padding-block:18px}.brand-resource-title{font-size:14px}.brand-products td{padding:13px 14px}.brand-products th{padding:12px 14px}.brand-empty{font-size:13px}}
@media(prefers-reduced-motion:reduce){.brand-page *{transition:none!important}}

/* Brand detail header, UI V1.8; shared homepage components stay untouched. */
.brand-breadcrumb{justify-content:flex-end;text-align:right;margin-bottom:18px}
.brand-panel>.screen-reader-text{margin:0}
.brand-intro-header{display:flex;flex-direction:column;align-items:center;gap:12px;margin:0 0 18px;text-align:center}
.brand-intro-header .brand-detail-logo{margin:0;max-width:min(308px,100%)}
.brand-intro-header .brand-detail-logo img{width:auto;max-width:100%;max-height:92px;object-fit:contain}
.brand-intro-header .brand-website{display:inline-block;margin:0;font-size:14px;line-height:1.6;color:#6033b3;text-underline-offset:4px;overflow-wrap:anywhere}
.brand-intro-header .brand-website:hover{text-decoration:underline}
.brand-website-line{font-size:14px;line-height:1.6;color:#6033b3;overflow-wrap:anywhere}
.brand-detail-logo+.brand-website-line{width:min(308px,100%);padding-top:12px;border-top:1px solid var(--ali-glass-edge,#e5dcf4)}
.brand-publication{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px 0;width:fit-content;max-width:100%;box-sizing:border-box;min-height:42px;padding:7px 22px;margin:0 auto 26px;border:1px solid #eee6fa;border-radius:11px;background:var(--ali-glass-surface,#ffffffd1);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:var(--ali-glass-shadow);color:#6033b3;font-size:12px;line-height:1.7}
.brand-publication>span{position:relative;min-width:0;overflow-wrap:anywhere}
.brand-publication>span+span{margin-inline-start:11px;padding-inline-start:11px}
.brand-publication>span+span::before{content:"";position:absolute;inset-inline-start:0;top:50%;height:12px;border-inline-start:1px solid #d7c8eb;transform:translateY(-50%)}
.brand-view-count,.brand-share-control{display:inline-flex;align-items:center;gap:6px}
.brand-view-count svg{width:18px;height:18px;flex:none}
.brand-wechat{display:inline-flex;align-items:center;justify-content:center;width:30px;height:28px;padding:3px;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer}
.brand-wechat svg{width:25px;height:23px}
.brand-wechat:hover{background:#f4efff}
.brand-wechat:focus-visible,.brand-share-close:focus-visible{outline:2px solid #8956ef;outline-offset:3px}



.brand-richtext a{color:#6033b3;text-decoration:underline;text-underline-offset:3px}
.brand-richtext .wp-block-buttons{margin-block:22px 4px}
.brand-share-dialog{width:min(390px,calc(100vw - 36px));max-height:calc(100dvh - 36px);overflow:auto;box-sizing:border-box;padding:28px 24px 20px;border:1px solid #e5dcf4;border-radius:18px;background:#fff;color:#3a4241;box-shadow:0 16px 60px #41266c38;text-align:center}
.brand-share-dialog::backdrop{background:#28223e66;backdrop-filter:blur(3px)}
.brand-share-dialog .brand-share-title{font-size:20px;color:#28223e;margin:0 20px 12px;font-weight:600}
.brand-share-dialog p{font-size:13px;line-height:1.7;margin:10px 0}
.brand-share-dialog label{display:block;font-size:12px;color:#737489;margin-top:14px;text-align:left}
.brand-share-dialog input{display:block;width:100%;box-sizing:border-box;font:inherit;font-size:12px;padding:9px 10px;border:1px solid #e5dcf4;border-radius:8px;color:#6033b3;background:#faf8ff}
.brand-share-close{position:absolute;right:10px;top:8px;background:transparent;border:0;color:#6033b3;font-size:25px;line-height:1;width:32px;height:32px;cursor:pointer}
.brand-share-qr{display:block;width:206px;height:206px;max-width:100%;margin:12px auto;image-rendering:pixelated}
.brand-share-qr[hidden],.brand-native-share[hidden]{display:none}
.brand-share-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:14px}
.brand-share-actions .action-link{font-size:12px;cursor:pointer}
.brand-share-dialog .brand-share-note{font-size:12px;color:#737489;text-align:left;background:#f7f4fc;padding:10px;border-radius:8px}
.brand-share-status{color:#6033b3;min-height:20px}
@media(max-width:1024px){.brand-publication>span:first-child{flex-basis:100%;text-align:center}.brand-publication>span:nth-child(2){margin-inline-start:0;padding-inline-start:0}.brand-publication>span:nth-child(2)::before{display:none}}
@media(max-width:640px){.brand-breadcrumb{margin-bottom:14px}.brand-intro-header{gap:10px;margin-bottom:14px}.brand-intro-header .brand-detail-logo{max-width:240px}.brand-intro-header .brand-website{font-size:13px}.brand-detail-logo+.brand-website-line{width:min(240px,100%);padding-top:10px}.brand-publication{gap:7px 0;padding:9px 10px;font-size:11px;margin-bottom:22px;border-radius:10px}.brand-publication>span:nth-child(n+3){margin-inline-start:6px;padding-inline-start:6px}}
