/**
 * 品牌插件 - 前台页面样式（列表页 / 字母页 / 详情页）
 * @author  VeryQ
 * @date    2026-11-21
 */
/* ===== 品牌列表页 ===== */
.plugins-brand-list{background:#f5f6f8;padding:16px 0 40px;min-height:600px}
.plugins-brand-list .brand-recommend{background:#fff;border-radius:8px;padding:14px 16px;margin-bottom:12px;overflow:hidden}
.plugins-brand-list .brand-recommend h2{margin:0 0 12px;font-size:16px;color:#333;line-height:1.4}
.plugins-brand-list .brand-recommend h2:before{content:"";display:inline-block;width:3px;height:15px;background:var(--color-main);vertical-align:-2px;margin-right:8px;border-radius:2px}
.plugins-brand-list .rec-wrap{position:relative}
.plugins-brand-list .rec-viewport{overflow:hidden}
.plugins-brand-list .rec-track{display:flex;width:max-content;will-change:transform}
.plugins-brand-list .rec-item{width:140px;height:100px;flex:0 0 140px;margin-right:4px;display:flex;align-items:center;justify-content:center;border:0;border-radius:2px;padding:0;box-sizing:border-box;background:#f5f5f5;overflow:hidden}
.plugins-brand-list .rec-item img{width:100%;height:100%;display:block}
.plugins-brand-list .rec-item:hover{background:#ececec}
.plugins-brand-list .rec-arrow{position:absolute;top:50%;transform:translateY(-50%);width:30px;height:52px;border:0;cursor:pointer;background:rgba(0,0,0,.3);color:#fff;font-size:22px;line-height:1;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s,background .2s;z-index:2;padding:0;font-family:Arial,sans-serif}
.plugins-brand-list .rec-arrow.prev{left:0;border-radius:0 4px 4px 0}
.plugins-brand-list .rec-arrow.next{right:0;border-radius:4px 0 0 4px}
.plugins-brand-list .brand-recommend:hover .rec-arrow{opacity:1;visibility:visible}
.plugins-brand-list .rec-arrow:hover{background:rgba(0,0,0,.55)}
.plugins-brand-list .rec-arrow:active{background:rgba(0,0,0,.7)}
/* 字母条 + 搜索（吸顶在顶部搜索栏下方） */
.plugins-brand-list .brand-alpha-bar{background:#fff;border-radius:8px;padding:10px 14px;margin-bottom:12px;display:flex;align-items:center;gap:12px;position:sticky;top:59px;z-index:100;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.plugins-brand-list .brand-alpha-bar .alpha-list{display:flex;flex-wrap:wrap;gap:2px;flex:1;min-width:0}
.plugins-brand-list .brand-alpha-bar .alpha-list a{display:inline-block;min-width:32px;height:32px;line-height:32px;text-align:center;border-radius:4px;color:#333;font-size:15px;text-decoration:none;font-weight:500}
.plugins-brand-list .brand-alpha-bar .alpha-list a:hover{background:#eef4fb;color:var(--color-main)}
.plugins-brand-list .brand-alpha-bar .alpha-list a.disabled{color:#ccc;cursor:not-allowed;font-weight:normal}
.plugins-brand-list .brand-alpha-bar .alpha-list a.disabled:hover{background:none;color:#ccc}
.plugins-brand-list .brand-alpha-bar .alpha-search{display:flex;flex:0 0 200px;border:1px solid #e0e0e0;border-radius:4px;overflow:hidden;background:#fff}
.plugins-brand-list .brand-alpha-bar .alpha-search input{flex:1;min-width:0;border:0;outline:none;padding:0 10px;height:30px;font-size:13px;background:transparent}
.plugins-brand-list .brand-alpha-bar .alpha-search button{border:0;background:var(--color-main);color:#fff;padding:0 14px;height:30px;font-size:13px;cursor:pointer}
.plugins-brand-list .brand-alpha-bar .alpha-search button:hover{opacity:.88}

.plugins-brand-list .brand-letter-section{background:#fff;border-radius:8px;padding:16px;margin-bottom:10px;scroll-margin-top:130px}
.plugins-brand-list .brand-letter-section .section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;border-bottom:1px solid #f2f2f2;padding-bottom:8px}
.plugins-brand-list .brand-letter-section .section-head h2{margin:0;font-size:18px;font-weight:600;color:var(--color-main)}
.plugins-brand-list .brand-letter-section .section-head a{font-size:13px;color:#999;text-decoration:none}
.plugins-brand-list .brand-letter-section .section-head a:hover{color:var(--color-main)}
.plugins-brand-list .brand-grid{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0;list-style:none}
.plugins-brand-list .brand-grid li{width:calc(12.5% - 9px);flex:0 0 auto;box-sizing:border-box;height:152px;border:1px solid #f2f2f2;border-radius:6px;box-sizing:border-box;transition:border-color .2s,box-shadow .2s;position:relative;overflow:hidden;background:#fff}
.plugins-brand-list .brand-grid li:hover{border-color:var(--color-main);box-shadow:0 2px 10px rgba(0,0,0,.08)}
.plugins-brand-list .brand-grid .brand-logo{height:110px;display:flex;align-items:center;justify-content:center;padding:12px;box-sizing:border-box}
.plugins-brand-list .brand-grid .brand-logo img{max-width:100%;max-height:100%;object-fit:contain}
.plugins-brand-list .brand-grid .brand-name{height:38px;line-height:38px;font-size:13px;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;display:block;text-align:center;padding:0 6px;box-sizing:border-box}
.plugins-brand-list .brand-grid .brand-name:hover{color:var(--color-main)}
/* 操作按钮：悬停覆盖名称区 */
.plugins-brand-list .brand-grid .brand-ops{position:absolute;left:0;right:0;bottom:0;height:38px;display:flex;align-items:center;justify-content:center;gap:14px;background:var(--color-main);opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}
.plugins-brand-list .brand-grid li:hover .brand-ops{opacity:1;visibility:visible}
.plugins-brand-list .brand-grid .brand-ops a{font-size:13px;color:#fff;text-decoration:none;white-space:nowrap}
.plugins-brand-list .brand-grid .brand-ops a:hover{opacity:.82}
@media only screen and (max-width:1024px){
.plugins-brand-list .brand-grid li{width:calc(20% - 8px);flex:0 0 auto}
.plugins-brand-list .brand-recommend li{width:calc(20% - 8px)}
.plugins-brand-list .brand-alpha-bar{flex-wrap:wrap}
.plugins-brand-list .brand-alpha-bar .alpha-search{flex:1 1 100%}
}
@media only screen and (max-width:640px){
.plugins-brand-list .brand-grid li{width:calc(33.33% - 7px);flex:0 0 auto;height:120px}
.plugins-brand-list .brand-grid .brand-logo{height:82px;padding:8px}
.plugins-brand-list .brand-grid .brand-name{height:34px;line-height:34px;font-size:12px}
.plugins-brand-list .brand-grid .brand-ops{height:34px;gap:8px}
.plugins-brand-list .brand-grid .brand-ops a{font-size:12px}
.plugins-brand-list .rec-item{width:34vw;height:64px;flex:0 0 34vw;margin-right:4px}
.plugins-brand-list .rec-arrow{width:24px;height:40px;font-size:18px}
/* H5 无搜索栏吸顶，字母条贴顶 */
.plugins-brand-list .brand-alpha-bar{top:0;padding:6px 10px}
.plugins-brand-list .brand-alpha-bar .alpha-list{gap:0;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
.plugins-brand-list .brand-alpha-bar .alpha-list a{min-width:26px;height:28px;line-height:28px;font-size:13px}
.plugins-brand-list .brand-letter-section{scroll-margin-top:80px}
}
/* ===== 品牌字母 / 搜索页 ===== */
.plugins-brand-letter{background:#f5f6f8;padding:16px 0 40px;min-height:600px}
.plugins-brand-letter .brand-alpha-bar{background:#fff;border-radius:8px;padding:8px 14px;margin-bottom:12px;display:flex;align-items:center;gap:12px;position:sticky;top:59px;z-index:100;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.plugins-brand-letter .brand-alpha-bar .alpha-list{display:flex;flex-wrap:wrap;gap:2px;flex:1;min-width:0}
.plugins-brand-letter .brand-alpha-bar .alpha-list a{display:inline-block;min-width:32px;height:32px;line-height:32px;text-align:center;border-radius:4px;color:#333;font-size:15px;text-decoration:none;font-weight:500}
.plugins-brand-letter .brand-alpha-bar .alpha-list a:hover{background:#eef4fb;color:var(--color-main)}
.plugins-brand-letter .brand-alpha-bar .alpha-list a.active{background:var(--color-main);color:#fff}
.plugins-brand-letter .brand-alpha-bar .alpha-list a.disabled{color:#ccc;cursor:not-allowed;font-weight:normal}
.plugins-brand-letter .brand-alpha-bar .alpha-list a.disabled:hover{background:none;color:#ccc}
.plugins-brand-letter .brand-alpha-bar .alpha-search{display:flex;flex:0 0 200px;border:1px solid #e0e0e0;border-radius:4px;overflow:hidden;background:#fff}
.plugins-brand-letter .brand-alpha-bar .alpha-search input{flex:1;min-width:0;border:0;outline:none;padding:0 10px;height:30px;font-size:13px;background:transparent}
.plugins-brand-letter .brand-alpha-bar .alpha-search button{border:0;background:var(--color-main);color:#fff;padding:0 14px;height:30px;font-size:13px;cursor:pointer}
.plugins-brand-letter .brand-alpha-bar .alpha-search button:hover{opacity:.88}
.plugins-brand-letter .brand-main{background:#fff;border-radius:8px;padding:16px}
.plugins-brand-letter .brand-main h1{margin:0 0 16px;font-size:18px;color:#333;border-bottom:1px solid #f2f2f2;padding-bottom:10px}
.plugins-brand-letter .brand-main h1 small{font-size:13px;color:#999;font-weight:normal;margin-left:8px}
.plugins-brand-letter .brand-grid{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0;list-style:none}
.plugins-brand-letter .brand-grid li{width:calc(12.5% - 9px);flex:0 0 auto;box-sizing:border-box;height:152px;border:1px solid #f2f2f2;border-radius:6px;box-sizing:border-box;transition:border-color .2s,box-shadow .2s;position:relative;overflow:hidden;background:#fff}
.plugins-brand-letter .brand-grid li:hover{border-color:var(--color-main);box-shadow:0 2px 10px rgba(0,0,0,.08)}
.plugins-brand-letter .brand-grid .brand-logo{height:110px;display:flex;align-items:center;justify-content:center;padding:12px;box-sizing:border-box}
.plugins-brand-letter .brand-grid .brand-logo img{max-width:100%;max-height:100%;object-fit:contain}
.plugins-brand-letter .brand-grid .brand-name{height:38px;line-height:38px;font-size:13px;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;display:block;text-align:center;padding:0 6px;box-sizing:border-box}
.plugins-brand-letter .brand-grid .brand-name:hover{color:var(--color-main)}
.plugins-brand-letter .brand-grid .brand-ops{position:absolute;left:0;right:0;bottom:0;height:38px;display:flex;align-items:center;justify-content:center;gap:14px;background:var(--color-main);opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}
.plugins-brand-letter .brand-grid li:hover .brand-ops{opacity:1;visibility:visible}
.plugins-brand-letter .brand-grid .brand-ops a{font-size:13px;color:#fff;text-decoration:none;white-space:nowrap}
.plugins-brand-letter .brand-grid .brand-ops a:hover{opacity:.82}
.plugins-brand-letter .brand-page{margin-top:20px;text-align:center}
.plugins-brand-letter .brand-page .page-tip{display:inline-block;margin-right:12px;color:#999;font-size:13px}
.plugins-brand-letter .brand-page .am-pagination{display:inline-block;margin:0}
.plugins-brand-letter .brand-page .am-pagination>li>a,.plugins-brand-letter .brand-page .am-pagination>li>span{color:#555}
.plugins-brand-letter .brand-page .am-pagination>.am-active>a{background:var(--color-main);border-color:var(--color-main);color:#fff}
@media only screen and (max-width:1024px){
.plugins-brand-letter .brand-grid li{width:calc(20% - 8px);flex:0 0 auto}
.plugins-brand-letter .brand-alpha-bar{flex-wrap:wrap}
.plugins-brand-letter .brand-alpha-bar .alpha-search{flex:1 1 100%}
}
@media only screen and (max-width:640px){
.plugins-brand-letter .brand-grid li{width:calc(33.33% - 7px);flex:0 0 auto;height:120px}
.plugins-brand-letter .brand-grid .brand-logo{height:82px;padding:8px}
.plugins-brand-letter .brand-grid .brand-name{height:34px;line-height:34px;font-size:12px}
.plugins-brand-letter .brand-grid .brand-ops{height:34px;gap:8px}
.plugins-brand-letter .brand-grid .brand-ops a{font-size:12px}
/* H5 无搜索栏吸顶，字母条贴顶 */
.plugins-brand-letter .brand-alpha-bar{top:0;padding:6px 10px}
.plugins-brand-letter .brand-alpha-bar .alpha-list{gap:0;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
.plugins-brand-letter .brand-alpha-bar .alpha-list a{min-width:26px;height:28px;line-height:28px;font-size:13px}
}
/* ===== 品牌详情页 ===== */
.plugins-brand-detail{background:#f5f5f5;padding:16px 0 40px;min-height:600px}
.plugins-brand-detail .brand-crumb{font-size:13px;color:#999;margin-bottom:12px}
.plugins-brand-detail .brand-crumb a{color:#999;text-decoration:none}
.plugins-brand-detail .brand-crumb a:hover{color:var(--color-main)}
.plugins-brand-detail .brand-head{background:#fff;border-radius:8px;padding:20px;margin-bottom:16px;display:flex;gap:20px;align-items:flex-start}
.plugins-brand-detail .brand-head .head-logo{width:180px;height:100px;flex:0 0 180px;display:flex;align-items:center;justify-content:center;border:1px solid #f0f0f0;border-radius:6px;padding:8px;box-sizing:border-box}
.plugins-brand-detail .brand-head .head-logo img{max-width:100%;max-height:100%;object-fit:contain}
.plugins-brand-detail .brand-head .head-info{flex:1;min-width:0}
.plugins-brand-detail .brand-head h1{margin:0 0 12px;font-size:22px;color:#333}
.plugins-brand-detail .brand-head .head-meta{display:flex;flex-wrap:wrap;gap:8px 24px;font-size:13px;color:#666;margin-bottom:12px}
.plugins-brand-detail .brand-head .head-meta span b{color:#999;font-weight:normal;margin-right:4px}
.plugins-brand-detail .brand-head .head-actions a{display:inline-block;padding:7px 18px;border-radius:4px;font-size:13px;text-decoration:none;margin-right:8px}
.plugins-brand-detail .brand-head .head-actions .btn-main{background:var(--color-main);color:#fff}
.plugins-brand-detail .brand-head .head-actions .btn-main:hover{opacity:.88}
.plugins-brand-detail .brand-head .head-actions .btn-plain{border:1px solid #ddd;color:#666}
.plugins-brand-detail .brand-head .head-actions .btn-plain:hover{border-color:var(--color-main);color:var(--color-main)}
.plugins-brand-detail .brand-block{background:#fff;border-radius:8px;padding:20px;margin-bottom:16px}
.plugins-brand-detail .brand-block h2{margin:0 0 16px;font-size:16px;color:#333;border-left:3px solid var(--color-main);padding-left:8px}
.plugins-brand-detail .brand-block .richtext{line-height:1.8;color:#444;font-size:14px}
.plugins-brand-detail .brand-block .richtext img{max-width:100%;height:auto}
.plugins-brand-detail .brand-contact{display:flex;flex-wrap:wrap;gap:12px 40px;font-size:14px;color:#555}
.plugins-brand-detail .brand-contact div b{color:#999;font-weight:normal;margin-right:6px}
.plugins-brand-detail .same-brand{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0;list-style:none}
.plugins-brand-detail .same-brand li{width:calc(12.5% - 9px);text-align:center;border:1px solid #f0f0f0;border-radius:6px;padding:10px;box-sizing:border-box}
.plugins-brand-detail .same-brand li:hover{border-color:var(--color-main)}
.plugins-brand-detail .same-brand .logo{height:46px;display:flex;align-items:center;justify-content:center;margin-bottom:6px}
.plugins-brand-detail .same-brand .logo img{max-width:100%;max-height:46px;object-fit:contain}
.plugins-brand-detail .same-brand .name{font-size:12px;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;text-decoration:none}
.plugins-brand-detail .same-brand .name:hover{color:var(--color-main)}
@media only screen and (max-width:1024px){
.plugins-brand-detail .same-brand li{width:calc(20% - 8px)}
.plugins-brand-detail .brand-head{flex-direction:column}
.plugins-brand-detail .brand-head .head-logo{width:100%;flex:none}
}
@media only screen and (max-width:640px){.plugins-brand-detail .same-brand li{width:calc(33.33% - 7px)}}
