/* ============================================================
   企业商铺 · EYOUB2B 店铺首页样式
   ============================================================ */
.page-shop-storefront {
    background: #eef1f6;
}
.page-shop-storefront .site-main {
    padding: 0;
}
.shop-storefront {
    background: #eef1f6;
    color: #333;
    font-size: 14px;
}

/* ---------- Header TOP ---------- */
.shop-store-header-top {
    background: #0c2f66;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    line-height: 36px;
}
.shop-store-header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.shop-store-header-top-left,
.shop-store-header-top-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}
.shop-store-header-top a {
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
}
.shop-store-header-top a:hover { color: #fff; }
.shop-store-portal-link { font-weight: 600; }
.shop-store-header-sep { color: rgba(255, 255, 255, .28); }
.shop-store-header-welcome {
    color: rgba(255, 255, 255, .68);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 42vw;
}
.shop-store-header-reg { color: #ffd48a !important; font-weight: 600; }

/* ---------- 顶部横幅 ---------- */
.shop-store-banner {
    width: 100%;
    max-height: 220px;
    overflow: hidden;
    background: #dbeafe;
    border-bottom: 1px solid #e5e7eb;
}
.shop-store-banner img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* ---------- 顶栏 ---------- */
.shop-store-top {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.1rem 0;
}
.shop-store-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.shop-store-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1;
}
.shop-store-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe, #93c5fd);
    border: 2px solid #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: #1d4ed8;
}
.shop-store-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-store-brand-main { min-width: 0; }
.shop-store-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .65rem;
    margin-bottom: .45rem;
}
.shop-store-title-row h1 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.35;
}
.shop-badge {
    display: inline-flex;
    align-items: center;
    padding: .12rem .55rem;
    border-radius: 3px;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.4;
}
.shop-badge-verified {
    background: #16a34a;
    color: #fff;
}
.shop-badge-rec {
    background: #f59e0b;
    color: #fff;
}
.shop-store-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    color: #6b7280;
    font-size: .82rem;
}
.shop-store-tags span::after {
    content: '|';
    margin-left: .35rem;
    color: #d1d5db;
}
.shop-store-tags span:last-child::after { display: none; }
.shop-store-hotline {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #dc2626;
    font-size: 1.35rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.shop-store-hotline i { font-size: 1.15rem; }
.shop-phone-login-hint {
    margin-left: .2rem;
    font-size: .78rem;
    font-style: normal;
    font-weight: 600;
    color: #2563eb;
}
.shop-phone-login-link {
    margin-left: .25rem;
    font-size: .78rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}
.shop-phone-login-link:hover { text-decoration: underline; }

/* ---------- 导航 ---------- */
.shop-store-nav {
    background: #2563eb;
    position: sticky;
    top: 0;
    z-index: 1020;
}
.shop-store-nav .container {
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.shop-store-nav .container::-webkit-scrollbar { display: none; }
.shop-store-nav a {
    flex-shrink: 0;
    padding: .72rem 1.15rem;
    color: rgba(255, 255, 255, .92);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: background .15s, color .15s;
}
.shop-store-nav a:hover,
.shop-store-nav a.is-active {
    background: #1d4ed8;
    color: #fff;
    border-bottom-color: #fbbf24;
}

/* ---------- 面包屑条 ---------- */
.shop-store-locate {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    font-size: .82rem;
    color: #6b7280;
}
.shop-store-locate-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem 0;
}
.shop-store-locate a { color: #2563eb; text-decoration: none; }
.shop-store-locate a:hover { text-decoration: underline; }
.shop-store-locate em { color: #374151; font-style: normal; }

/* ---------- 主体布局 ---------- */
.shop-store-body { padding: 1rem 0 1.5rem; }
.shop-store-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1rem;
    align-items: start;
}

/* ---------- 主栏区块 ---------- */
.shop-block {
    background: #fff;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.shop-block-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid #eef2f7;
    font-size: .95rem;
    font-weight: 800;
    color: #1f2937;
}
.shop-block-title-flex {
    justify-content: space-between;
}
.shop-block-bar {
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #2563eb;
    border-radius: 2px;
    flex-shrink: 0;
}
.shop-block-body { padding: 1rem; }
.shop-intro-text {
    margin: 0;
    line-height: 1.85;
    color: #4b5563;
    text-indent: 2em;
}
.shop-more-link {
    font-size: .82rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}
.shop-more-link:hover { text-decoration: underline; }

/* 产品网格 4 列 */
.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem 1rem;
}
.shop-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: inherit;
    text-decoration: none;
    padding: .35rem;
    border-radius: 6px;
    transition: background .15s;
}
.shop-product-card:hover { background: #f8fafc; }
.shop-product-thumb {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #eef2f7;
    border-radius: 6px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: .45rem;
    color: #94a3b8;
    font-size: 1.5rem;
    position: relative;
}
.shop-product-top {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    padding: .05rem .35rem;
    background: #dc2626;
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.35;
    border-radius: 3px;
}
.shop-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-product-name {
    font-size: .82rem;
    color: #374151;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
    margin-bottom: .25rem;
}
.shop-product-price {
    font-size: .82rem;
    font-weight: 700;
    color: #dc2626;
}
.shop-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #9ca3af;
}

/* 基本资料表 */
.shop-profile-table { border: 1px solid #eef2f7; }
.shop-profile-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #eef2f7;
}
.shop-profile-row:last-child { border-bottom: 0; }
.shop-profile-cell {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: .65rem;
    padding: .65rem .85rem;
    border-right: 1px solid #eef2f7;
    font-size: .84rem;
    line-height: 1.55;
}
.shop-profile-cell:last-child { border-right: 0; }
.shop-profile-cell.full { grid-column: 1 / -1; border-right: 0; }
.shop-profile-cell label {
    margin: 0;
    color: #6b7280;
    font-weight: 600;
}
.shop-profile-cell span { color: #374151; word-break: break-word; }
.shop-profile-cell a { color: #2563eb; }
.shop-inline-badge {
    display: inline-block;
    padding: .05rem .45rem;
    background: #dcfce7;
    color: #15803d;
    border-radius: 3px;
    font-style: normal;
    font-size: .78rem;
    font-weight: 700;
}
.shop-tag {
    display: inline-block;
    padding: .05rem .5rem;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 3px;
    font-style: normal;
    font-size: .78rem;
}
.shop-profile-content { font-size: .88rem; color: #4b5563; }

/* ---------- 侧栏 ---------- */
.shop-side-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.shop-side-head {
    padding: .65rem .85rem;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    font-size: .88rem;
    font-weight: 800;
    color: #2563eb;
}
.shop-side-contact {
    list-style: none;
    margin: 0;
    padding: .65rem .85rem .85rem;
}
.shop-side-contact li {
    display: flex;
    gap: .5rem;
    align-items: flex-start;
    padding: .35rem 0;
    font-size: .84rem;
    color: #4b5563;
    line-height: 1.5;
}
.shop-side-contact i {
    color: #2563eb;
    margin-top: .15rem;
    flex-shrink: 0;
}
.shop-side-list {
    list-style: none;
    margin: 0;
    padding: .45rem .85rem .75rem;
}
.shop-side-list li {
    padding: .32rem 0 .32rem .85rem;
    position: relative;
    font-size: .84rem;
    line-height: 1.45;
}
.shop-side-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2563eb;
}
.shop-side-list a {
    color: #374151;
    text-decoration: none;
}
.shop-side-list a:hover { color: #2563eb; }
.shop-side-empty {
    padding: .85rem;
    font-size: .84rem;
    color: #9ca3af;
}

/* ---------- 页脚 ---------- */
.shop-store-footer {
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    padding: 1.25rem 0 1.5rem;
    text-align: center;
    font-size: .82rem;
    color: #6b7280;
}
.shop-store-footer p { margin: 0 0 .35rem; }
.shop-footer-note { font-size: .78rem; color: #9ca3af; }
.shop-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem 1.25rem;
    margin-top: .65rem;
}
.shop-footer-links a {
    color: #6b7280;
    text-decoration: none;
}
.shop-footer-links a:hover { color: #2563eb; }
.shop-store-footer .cms-powered-by {
    margin-top: .7rem;
    color: #9ca3af;
}
.shop-store-footer .cms-powered-by a { color: #6b7280; }
.shop-store-footer .cms-powered-by a:hover { color: #2563eb; }

/* ---------- 响应式 ---------- */
@media (max-width: 991.98px) {
    .shop-store-layout { grid-template-columns: 1fr; }
    .shop-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .shop-profile-row { grid-template-columns: 1fr; }
    .shop-profile-cell { border-right: 0; border-bottom: 1px solid #eef2f7; }
    .shop-profile-row .shop-profile-cell:last-child { border-bottom: 0; }
}
@media (max-width: 767.98px) {
    .shop-store-header-top { line-height: 1.4; padding: .45rem 0; }
    .shop-store-header-top-inner { flex-direction: column; align-items: flex-start; gap: .25rem; }
    .shop-store-header-welcome { max-width: 100%; }
    .shop-store-banner img { height: 140px; }
    .shop-store-top-inner { flex-direction: column; align-items: flex-start; }
    .shop-store-hotline { font-size: 1.15rem; }
    .shop-store-title-row h1 { font-size: 1.15rem; }
    .shop-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-store-locate-inner { flex-direction: column; align-items: flex-start; }
}
