/* Public content pages share the existing brand header/footer and tokens. */
.mzy-content-main { min-height: 60vh; background: #f6f8fc; color: var(--text-main); }
.mzy-content-main h1, .mzy-content-main h2, .mzy-content-main p { margin-top: 0; }
.mzy-content-main a:focus-visible, .mzy-content-main button:focus-visible,
.mzy-content-main input:focus-visible, .mzy-content-main textarea:focus-visible,
.mzy-content-main select:focus-visible, .mzy-form-panel [role=button]:focus-visible { outline: 3px solid #306bff; outline-offset: 3px; }
.mzy-content-main a:hover { color: var(--brand); }
.mzy-content-hero { padding: 32px 0 42px; border-bottom: 1px solid #e4ebf8; background: radial-gradient(ellipse at 90% 0, #e2efff, transparent 60%), linear-gradient(120deg, #f3f7ff, #fff 65%); }
.mzy-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; color: #66758c; font-size: 14px; }
.mzy-breadcrumb a { padding: 6px 0; }
.mzy-content-hero h1 { margin-bottom: 12px; font-size: clamp(26px, 3vw, 38px); line-height: 1.35; }
.mzy-content-hero p { margin-bottom: 0; color: #60718d; line-height: 1.8; }
.mzy-content-section { padding-top: 32px; padding-bottom: 56px; }
.mzy-panel { min-width: 0; padding: 28px; border: 1px solid #e4ebf5; border-radius: 18px; background: #fff; box-shadow: 0 8px 28px rgb(31 67 130 / 4%); }
.mzy-content-section > .mzy-panel + .mzy-panel { margin-top: 24px; }
.mzy-panel h2 { margin-bottom: 20px; font-size: 21px; line-height: 1.5; }
.mzy-search { width: min(560px, 100%); margin-top: 24px; }
.mzy-search form { display: flex; padding: 5px; border: 1px solid #cfdcf5; border-radius: 12px; background: #fff; }
.mzy-search input { min-width: 0; flex: 1; width: 100%; padding: 10px 14px; border: 0; background: transparent; color: #243855; }
.mzy-search button, .mzy-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 600; line-height: 1.6; text-align: center; }
.mzy-content-main .mzy-button:hover, .mzy-search button:hover { background: var(--brand-deep); color: #fff; }
.mzy-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.mzy-back-link { display: inline-block; min-height: 44px; margin-bottom: 16px; padding: 10px 0; color: var(--brand); }
.mzy-result-list { display: grid; gap: 18px; }
.mzy-result-card { display: flex; gap: 26px; padding: 24px; border: 1px solid #e4ebf5; border-radius: 16px; background: #fff; }
.mzy-result-cover { display: block; flex: 0 0 210px; align-self: flex-start; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: #edf3fe; }
.mzy-result-cover img { width: 100%; height: 100%; object-fit: cover; }
.mzy-result-copy { min-width: 0; flex: 1; }
.mzy-eyebrow { display: inline-block; margin-bottom: 10px; color: var(--brand); font-size: 13px; }
.mzy-result-card h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.6; overflow-wrap: anywhere; }
.mzy-result-card p { margin: 0 0 14px; color: #65748c; font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.mzy-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; color: #69788f; font-size: 13px; line-height: 1.8; }
.mzy-meta a { color: var(--brand); }
.mzy-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mzy-tags a { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px; border: 1px solid #e1eaff; border-radius: 8px; background: #f5f8ff; color: #3d6098; font-size: 13px; overflow-wrap: anywhere; }
.mzy-tags a:hover { border-color: #b4ccff; background: #edf3ff; }
.mzy-tag-cloud a { min-height: 44px; font-size: 14px; }
.mzy-tag-cloud span { color: #76849a; font-size: 12px; }
.mzy-tag-section { margin-bottom: 24px; }
.mzy-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.mzy-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 0; list-style: none; }
.mzy-pagination li { list-style: none; }
.mzy-pagination a, .mzy-pagination > span, .mzy-pagination li > span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px 14px; border: 1px solid #dbe5f6; border-radius: 10px; background: #fff; color: #405779; font-size: 14px; }
.mzy-pagination .active a, .mzy-pagination .active span, .mzy-pagination .current { border-color: var(--brand); background: var(--brand); color: #fff; }
.mzy-pagination { align-items: center; color: #65748c; font-size: 14px; }
.mzy-pagination strong { font-weight: 600; }
.mzy-category-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.mzy-category-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border: 1px solid #e0e7f3; border-radius: 10px; background: #fff; color: #546984; }
.mzy-category-nav .active, .mzy-category-nav a[aria-current=page] { border-color: var(--brand); background: var(--brand); color: #fff; }
.mzy-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; margin-bottom: 24px; border: 1px solid #dce7ff; border-radius: 14px; background: #eef4ff; line-height: 1.7; }
.mzy-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.mzy-article { padding: 36px; }
.mzy-article-head { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid #e9edf5; }
.mzy-article h1 { margin: 0 0 18px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.6; overflow-wrap: anywhere; }
.mzy-article-body { color: #34445f; font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
.mzy-article-body img, .mzy-article-body video, .mzy-article-body iframe { max-width: 100% !important; }
.mzy-article-body img { height: auto !important; }
.mzy-article-body h2, .mzy-article-body h3 { margin: 28px 0 16px; color: var(--text-main); }
.mzy-article-body p { margin-bottom: 18px; }
.mzy-article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.mzy-table-scroll { max-width: 100%; overflow-x: auto; }
.mzy-article-body table { border-collapse: collapse; }
.mzy-article-body th, .mzy-article-body td { padding: 10px; border: 1px solid #e2e8f1; }
.mzy-disclaimer { padding: 16px; margin-top: 28px; border-radius: 10px; background: #f5f7fb; color: #6d7b90; font-size: 13px; line-height: 1.8; }
.mzy-sibling-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 24px; margin-top: 28px; border-top: 1px solid #e9edf5; }
.mzy-sibling-nav > * { min-width: 0; padding: 16px; border-radius: 10px; background: #f5f8fe; color: #65748c; font-size: 14px; line-height: 1.7; }
.mzy-sibling-nav strong { display: block; margin-top: 8px; color: #344f78; font-weight: 500; overflow-wrap: anywhere; }
.mzy-related ul { padding: 0; margin: 0; list-style: none; }
.mzy-related li { padding: 14px 0; border-bottom: 1px solid #edf0f6; font-size: 14px; line-height: 1.8; }
.mzy-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; line-height: 1.8; }
.mzy-filters { margin-bottom: 24px; padding-top: 12px; padding-bottom: 12px; }
.mzy-filters:not(:has(.mzy-filter-row)) { display: none; }
.mzy-filter-row { display: flex; gap: 24px; padding: 14px 0; border-bottom: 1px solid #edf0f7; font-size: 14px; }
.mzy-filter-row:last-of-type { border-bottom: 0; }
.mzy-filter-row > strong { flex: 0 0 84px; padding-top: 12px; font-weight: 500; }
.mzy-filter-row > div { display: flex; flex-wrap: wrap; flex: 1; min-width: 0; gap: 6px; }
.mzy-filter-row a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: #556a8c; cursor: pointer; }
.mzy-filter-row a.active { background: #eaf1ff; color: var(--brand); }
.mzy-resource-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mzy-resource-card { display: flex; flex-direction: column; padding: 22px; }
.mzy-resource-card > a { flex: 1; }
.mzy-resource-card img { width: 56px; height: 56px; margin-bottom: 16px; border: 1px solid #edf0f5; border-radius: 12px; object-fit: contain; }
.mzy-resource-card h2 { margin-bottom: 10px; font-size: 18px; overflow-wrap: anywhere; }
.mzy-resource-card p { margin-bottom: 16px; color: #687a93; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.mzy-resource-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid #edf0f6; color: #738098; font-size: 13px; }
.mzy-resource-bottom a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 8px; color: var(--brand); }
.mzy-template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mzy-template-card { overflow: hidden; padding: 0; }
.mzy-template-card > a { display: block; }
.mzy-template-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #eaf1ff; }
.mzy-template-card h2 { padding: 20px 20px 0; font-size: 17px; }
.mzy-template-card .mzy-resource-bottom { margin: 0 20px; padding-bottom: 14px; }
.mzy-price { color: #f16a26; font-size: 19px; }
.mzy-directory-head { display: flex; gap: 28px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid #e5ebf5; }
.mzy-directory-head > img { width: 128px; height: 128px; border: 1px solid #e7edf5; border-radius: 18px; object-fit: contain; }
.mzy-directory-head > div { min-width: 0; }
.mzy-directory-head p { color: #64758f; line-height: 1.8; overflow-wrap: anywhere; }
.mzy-action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.mzy-action-row > a { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
.mzy-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.mzy-contact-grid > .mzy-panel + .mzy-panel { margin-top: 0; }
.mzy-contact-card dt { margin-top: 24px; color: #697b93; font-size: 14px; }
.mzy-contact-card dd { margin: 8px 0 24px; font-size: 20px; overflow-wrap: anywhere; }
.mzy-contact-qr { margin-top: 28px; color: #64758f; font-size: 14px; }
.mzy-contact-qr img { width: 150px; height: 150px; object-fit: contain; }
.mzy-form-panel > p { color: #6a7b93; font-size: 14px; line-height: 1.8; }
.mzy-form-field { display: block; margin: 20px 0; color: #445773; font-size: 14px; }
.mzy-form-field > span { display: block; margin-bottom: 10px; }
.mzy-form-field input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]), .mzy-form-field textarea, .mzy-form-field select { display: block; width: 100%; min-height: 46px; padding: 12px 14px; border: 1px solid #d7e1f0; border-radius: 10px; background: #fbfcff; color: #34445f; font: inherit; }
.mzy-form-field textarea { min-height: 130px; resize: vertical; }
.mzy-form-panel .mzy-button { min-width: 150px; margin-top: 8px; }
.mzy-empty-state { grid-column: 1 / -1; padding: 48px 24px; border: 1px solid #e1e9f5; border-radius: 16px; background: #fff; color: #6e7f96; text-align: center; line-height: 1.8; }
/* Purchase UI retains the original component selectors within its own scope. */
.mzy-catalog-detail { padding-top: 20px; padding-bottom: 40px; background: #f6f8fc; color: var(--text-main); font: 15px/1.8 var(--font-sans); }
.mzy-catalog-detail .container, .mzy-catalog-detail .container-layout { width: var(--wrap-width); max-width: 1320px; }
.mzy-catalog-detail .pricebar, .mzy-catalog-detail .tab-head { border: 1px solid #e0e9f7; border-radius: 16px; background: #fff; }
.mzy-catalog-detail .bg-red, .mzy-catalog-detail .joinbuy-xin { background: var(--brand); }
.mzy-catalog-detail .buyaction-xin a, .mzy-catalog-detail .ey-buyaction a { min-height: 44px; border-radius: 10px; }
.mzy-catalog-detail .ey-buyaction .ey-joinin { border: 1px solid #c5d8ff; background: #eef4ff; color: var(--brand); }
.mzy-catalog-detail .ey-buyaction .ey-joinbuy { border: 1px solid var(--brand); background: var(--brand); color: #fff; }
.mzy-catalog-detail .tab-body { overflow-x: auto; }
.mzy-catalog-detail img { max-width: 100%; }
.mzy-content-hero .mzy-category-title { color: var(--text-main); font-size: 26px; font-weight: 600; }
@media (max-width: 1180px) { .mzy-resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .mzy-detail-layout { grid-template-columns: minmax(0, 1fr); } .mzy-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mzy-resource-grid, .mzy-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .mzy-content-hero { padding: 24px 0 30px; }
    .mzy-content-section { padding-top: 24px; padding-bottom: 36px; }
    .mzy-panel, .mzy-article { padding: 20px; border-radius: 14px; }
    .mzy-result-card { gap: 14px; padding: 18px; }
    .mzy-result-cover { flex-basis: 84px; aspect-ratio: 1; border-radius: 8px; }
    .mzy-result-card h2 { font-size: 17px; }
    .mzy-result-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; font-size: 14px; }
    .mzy-tags a { min-height: 44px; }
    .mzy-breadcrumb { margin-bottom: 16px; }
    .mzy-result-copy .mzy-tags { margin-left: -98px; }
    .mzy-sibling-nav, .mzy-contact-grid { grid-template-columns: minmax(0, 1fr); }
    .mzy-resource-grid { gap: 12px; }
    .mzy-resource-card { padding: 16px; }
    .mzy-resource-card h2 { font-size: 16px; }
    .mzy-template-grid { grid-template-columns: minmax(0, 1fr); }
    .mzy-template-card { padding: 0; }
    .mzy-directory-head { flex-direction: column; gap: 20px; }
    .mzy-directory-head > img { width: 80px; height: 80px; }
    .mzy-filter-row { flex-direction: column; gap: 8px; }
    .mzy-filter-row > strong { flex-basis: auto; padding-top: 0; }
    .mzy-contact-card dd { font-size: 18px; }
    .mzy-related-grid { grid-template-columns: minmax(0, 1fr); }
    .mzy-catalog-detail .line-big { margin-left: 0; margin-right: 0; }
    .mzy-catalog-detail .line-big > .xl12 { float: none; width: 100%; padding: 0; }
    .mzy-catalog-detail .template-detail .pricebar .padding,
    .mzy-catalog-detail .template-detail .pricebar .padding-big { display: block; padding: 20px; }
    .mzy-catalog-detail .buyaction-xin { display: flex; flex-wrap: wrap; gap: 12px; }
    .mzy-catalog-detail .buyaction-xin a { width: auto; flex: 1; }
    .mzy-catalog-detail .bread-style1 { white-space: normal; height: auto; line-height: 1.8; overflow-wrap: anywhere; }
    .mzy-catalog-detail .table-2 { overflow-x: auto; }
    .mzy-catalog-detail .table-2 table { min-width: 640px; }
}
@media (prefers-reduced-motion: reduce) { .mzy-content-main *, .mzy-catalog-detail * { scroll-behavior: auto; transition: none; animation: none; } }
