/* ============================================================
   yx-inner.css — 银欣美优商城 · 内页（栏目 / 搜索 / 商家 / 文档 / 商品详情覆盖）
   ============================================================ */
.yx_crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.yx_crumb a:hover { color: var(--yx-sun); }
.yx_crumb i { font-size: 11px; opacity: .6; }
.yx_crumb span { color: #fff; }

/* 页头横幅：栏目页带品类图，其余为雾蓝渐变 */
.yx_band { position: relative; padding: 30px 0 40px; background: var(--yx-blue-d) var(--yx-band) center 55% / cover no-repeat; color: #fff; }
.yx_band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36, 67, 92, .94) 0%, rgba(36, 67, 92, .7) 55%, rgba(36, 67, 92, .35) 100%); }
.yx_band > .yx_wrap { position: relative; }
.yx_band_plain { background: linear-gradient(135deg, #3E6E8E 0%, #24435C 100%); }
.yx_band_plain::before { background: radial-gradient(circle at 88% 20%, rgba(242, 181, 68, .22) 0%, rgba(242, 181, 68, 0) 40%); }
.yx_band_main { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.yx_band_main img { width: 64px; height: 64px; padding: 8px; border-radius: 18px; background: #fff; }
.yx_band h1 { margin: 16px 0 6px; font-size: 32px; font-weight: 800; }
.yx_band_main h1 { margin: 0 0 6px; }
.yx_band p { margin: 0; max-width: 680px; font-size: 14.5px; line-height: 1.85; color: rgba(255, 255, 255, .8); }
.yx_band_split { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.yx_band_search { display: flex; max-width: 640px; height: 50px; margin-top: 18px; border-radius: 25px; overflow: hidden; background: #fff; }
.yx_band_search select { width: 120px; padding: 0 14px; border: 0; border-right: 1px solid var(--yx-line); background: var(--yx-cream); outline: 0; color: var(--yx-text); }
.yx_band_search input { flex: 1; min-width: 0; padding: 0 16px; border: 0; outline: 0; font-size: 14.5px; }
.yx_band_search button { padding: 0 24px; border: 0; background: var(--yx-sun); color: #4A3410; font-weight: 700; }
.yx_band_search_sm { width: 340px; margin: 0; flex-shrink: 0; }
.yx_band_search_sm button { padding: 0 20px; }
.yx_band_hot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.yx_band_hot a { padding: 3px 12px; border-radius: 14px; background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .85); font-size: 13px; }
.yx_band_hot a:hover, .yx_band_hot a.on { background: var(--yx-sun); color: #4A3410; }

/* 标签 + 排序条 */
.yx_bar { background: #fff; border-bottom: 1px solid var(--yx-line); }
.yx_bar_in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.yx_pills { display: flex; flex-wrap: wrap; gap: 8px; }
.yx_pills a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 18px; border-radius: 19px; background: var(--yx-cream); color: var(--yx-text); font-size: 14px; }
.yx_pills a em { font-style: normal; font-size: 12px; color: var(--yx-muted); }
.yx_pills a.on { background: var(--yx-blue); color: #fff; font-weight: 600; }
.yx_pills a.on em { color: rgba(255, 255, 255, .7); }
.yx_pills_alt { border: 1px dashed var(--yx-blue-l); background: #fff !important; }
.yx_sorts { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--yx-cream); }
.yx_sorts a { padding: 6px 14px; border-radius: 9px; font-size: 13.5px; color: var(--yx-text); }
.yx_sorts a.on { background: #fff; color: var(--yx-blue-d); font-weight: 700; box-shadow: 0 2px 8px rgba(36, 67, 92, .1); }
.yx_bar_count { font-size: 14px; color: var(--yx-muted); }
.yx_bar_count b { color: var(--yx-blue-d); }

/* 列表 */
.yx_listing { padding-top: 28px; padding-bottom: 64px; }
.yx_grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.yx_pager { margin-top: 28px; }
.yx_sub { display: flex; align-items: baseline; justify-content: space-between; margin: 46px 0 16px; }
.yx_sub_first { margin-top: 0; }
.yx_sub h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--yx-blue-d); }
.yx_sub a, .yx_sub span { font-size: 13.5px; color: var(--yx-blue); }
.yx_empty { padding: 60px 20px; text-align: center; background: #fff; border-radius: 22px; color: var(--yx-muted); }
.yx_empty > i { font-size: 40px; color: var(--yx-blue-l); }
.yx_empty h3 { margin: 12px 0 6px; color: var(--yx-ink); }
.yx_btn_line { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; margin-top: 12px; border-radius: 20px; border: 1px solid var(--yx-blue); color: var(--yx-blue-d); }
.yx_btn_sun { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; height: 38px; padding: 0 18px; border-radius: 19px; background: var(--yx-sun); color: #4A3410; font-weight: 700; font-size: 13.5px; }
.yx_notice { margin-top: 26px; padding: 14px 18px; border-radius: 14px; background: var(--yx-sun-s); font-size: 13px; line-height: 1.8; color: #6E4F15; }
.yx_notice i { margin-right: 8px; color: var(--yx-amber); }

/* 商家列表 */
.yx_store_grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.yx_store { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: #fff; border-radius: 22px; transition: transform .25s, box-shadow .25s; }
.yx_store:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(36, 67, 92, .10); }
.yx_store_hd { display: flex; align-items: center; gap: 14px; }
.yx_store_ava { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 18px; background: var(--yx-blue); color: #fff; font-size: 24px; font-weight: 800; object-fit: cover; }
.yx_store_hd strong { display: block; font-size: 17px; color: var(--yx-ink); }
.yx_store_hd em { font-style: normal; font-size: 12.5px; color: #3A8A5B; }
.yx_store_desc { font-size: 13.5px; line-height: 1.8; color: var(--yx-text); }
.yx_store_pics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.yx_store_pics img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: var(--yx-blue-s); }
.yx_store_ft { display: flex; align-items: center; gap: 16px; margin-top: auto; font-size: 13px; color: var(--yx-muted); }
.yx_store_ft b { font-size: 16px; color: var(--yx-blue-d); }
.yx_store_go { margin-left: auto; font-style: normal; color: var(--yx-blue); font-weight: 700; }
.yx_store_join { justify-content: center; background: var(--yx-sun-s); border: 1px dashed #EBC77A; }
.yx_store_join .yx_store_ava { background: var(--yx-sun); color: #4A3410; }
.yx_store_join strong { font-size: 18px; color: var(--yx-ink); }
.yx_flow4 { margin-top: 40px; padding: 26px; background: #fff; border-radius: 22px; }
.yx_flow4 h2 { margin: 0 0 18px; font-size: 20px; color: var(--yx-blue-d); }
.yx_flow4 > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.yx_flow4 span { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: var(--yx-cream); }
.yx_flow4 b { width: 28px; height: 28px; border-radius: 50%; background: var(--yx-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.yx_flow4 strong { font-size: 15px; color: var(--yx-ink); }
.yx_flow4 small { font-size: 12.5px; color: var(--yx-muted); }

/* 商家主页 */
.yx_shopbar { padding: 26px 0 0; background: linear-gradient(135deg, #3E6E8E 0%, #24435C 100%); color: #fff; }
.yx_shopbar_in { display: flex; align-items: center; gap: 22px; margin-top: 20px; }
.yx_shopbar_ava { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 88px; height: 88px; border-radius: 26px; background: #fff; color: var(--yx-blue-d); font-size: 36px; font-weight: 800; object-fit: cover; }
.yx_shopbar_txt { flex: 1; min-width: 0; }
.yx_shopbar_txt h1 { display: inline; margin: 0; font-size: 28px; font-weight: 800; }
.yx_shopbar_ok { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; padding: 2px 10px; border-radius: 12px; background: var(--yx-sun); color: #4A3410; font-size: 12.5px; font-weight: 700; vertical-align: middle; }
.yx_shopbar_txt p { margin: 10px 0 0; font-size: 14px; line-height: 1.85; color: rgba(255, 255, 255, .8); }
.yx_shopbar_nums { display: flex; gap: 0; margin: 0; flex-shrink: 0; }
.yx_shopbar_nums div { padding: 0 22px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .18); }
.yx_shopbar_nums dt { font: 800 24px/1.2 "DIN Alternate", Arial, sans-serif; color: var(--yx-sun); }
.yx_shopbar_nums dd { margin: 4px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.yx_shopbar_info { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 22px 0 0; padding: 14px 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13.5px; color: rgba(255, 255, 255, .8); }
.yx_shopbar_info i { margin-right: 6px; color: var(--yx-sun); }

/* 文档 */
.yx_doctabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.yx_doctabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 14px; background: #fff; color: var(--yx-text); font-size: 14px; }
.yx_doctabs a i { color: var(--yx-blue-l); }
.yx_doctabs a.on { background: var(--yx-blue); color: #fff; font-weight: 600; }
.yx_doctabs a.on i { color: var(--yx-sun); }
.yx_doc { padding: 36px 44px; background: #fff; border-radius: 22px; font-size: 15px; line-height: 2; color: var(--yx-text); }
.yx_doc h2, .yx_doc h3, .yx_doc h4 { color: var(--yx-blue-d); margin: 22px 0 10px; }
.yx_doc p { margin: 0 0 12px; }
.yx_doc_contact { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 16px; padding: 16px 20px; border-radius: 16px; background: var(--yx-sun-s); font-size: 13.5px; color: #6E4F15; }
.yx_doc_contact i { margin-right: 6px; color: var(--yx-amber); }

/* ---------- 商品详情页（沿用原结构，换版式） ---------- */
.by_p_page { background: var(--yx-cream); }
.by_p_crumb_bar { background: transparent; border: 0; }
.by_p_crumb .cur { color: var(--yx-blue-d); }
.by_p_main { grid-template-columns: 1fr 1fr; gap: 40px; border: 0; border-radius: 28px; padding: 30px; }
.by_p_gallery { display: flex; flex-direction: column-reverse; gap: 14px; }
.by_p_thumbs { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 0 0 2px; }
.by_p_thumb { width: 72px; height: 72px; border-radius: 14px; }
.by_p_name { font-size: 24px; color: var(--yx-blue-d); }
.by_p_price_box { border: 0; border-left: 0; border-radius: 18px; background: linear-gradient(135deg, #FDF4E3 0%, #FBEBC8 100%); }
.by_p_btn { border-radius: 26px; }
.by_p_btn_cart { border-color: var(--yx-blue); color: var(--yx-blue-d); }
.by_p_btn_buy { background: var(--yx-sun); color: #4A3410; box-shadow: 0 10px 24px rgba(222, 148, 42, .3); }
.by_p_btn_fav { border-radius: 50%; }
.by_p_anchor { top: 112px; border-radius: 26px; background: #fff; box-shadow: 0 6px 20px rgba(36, 67, 92, .08); }
.by_p_anchor a { color: var(--yx-text); border-radius: 20px; }
.by_p_anchor a:hover { color: var(--yx-blue-d); background: var(--yx-blue-s); }
.by_p_anchor a.active { background: var(--yx-blue) !important; color: #fff !important; }
.by_p_sec { border: 0 !important; border-radius: 24px !important; }

@media (max-width: 1100px) {
    .yx_grid4 { grid-template-columns: repeat(3, 1fr); }
    .by_p_main { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .yx_band_split { flex-direction: column; align-items: stretch; }
    .yx_band_search_sm { width: auto; }
    .yx_store_grid, .yx_flow4 > div { grid-template-columns: 1fr 1fr; }
    .yx_shopbar_in { flex-wrap: wrap; }
    .yx_shopbar_nums div:first-child { border-left: 0; padding-left: 0; }
    .yx_doc { padding: 24px 20px; }
}
@media (max-width: 560px) {
    .yx_grid4 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .yx_store_grid, .yx_flow4 > div { grid-template-columns: 1fr; }
    .yx_band h1 { font-size: 25px; }
}
