/* ============================================================
   yx-home.css — 银欣美优商城 · 首页
   通栏大图 + 白卡 → 双品类大图卡 → 新近上架 4 列 → 厨房好物（左图右列）→ 双榜单 → 商家 → 介绍与流程
   ============================================================ */
.yx_hero { position: relative; height: 560px; background: #EDE7DC var(--yx-hero) right center / cover no-repeat; }
.yx_hero > .yx_wrap { position: relative; height: 100%; display: flex; align-items: flex-end; padding-bottom: 46px; }
.yx_hero_card { width: 500px; padding: 32px 34px; border-radius: 26px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); box-shadow: 0 24px 60px rgba(36, 67, 92, .16); }
.yx_kicker { display: inline-block; padding: 4px 12px; border-radius: 14px; background: var(--yx-sun-s); color: #8A6216; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; }
.yx_hero_card h1 { margin: 14px 0 12px; font-size: 36px; line-height: 1.32; font-weight: 800; color: var(--yx-blue-d); }
.yx_hero_card h1 em { font-style: normal; color: var(--yx-amber); }
.yx_hero_card p { margin: 0 0 20px; font-size: 14.5px; line-height: 1.9; color: var(--yx-text); }
.yx_hero_search { display: flex; height: 50px; padding: 4px; border-radius: 25px; background: var(--yx-cream); border: 1px solid var(--yx-line); }
.yx_hero_search input { flex: 1; min-width: 0; padding: 0 16px; border: 0; outline: 0; background: none; font-size: 14.5px; }
.yx_hero_search button { width: 52px; border: 0; border-radius: 21px; background: var(--yx-blue); color: #fff; font-size: 16px; }
.yx_hero_nums { display: flex; gap: 22px; margin-top: 18px; font-size: 13px; color: var(--yx-muted); }
.yx_hero_nums b { margin-right: 4px; font: 800 22px/1 "DIN Alternate", Arial, sans-serif; color: var(--yx-blue-d); }

.yx_sec { padding-top: 60px; }
.yx_sec_last { padding-bottom: 72px; }
.yx_sh { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.yx_sh h2 { margin: 0 0 4px; font-size: 28px; font-weight: 800; color: var(--yx-blue-d); }
.yx_sh p { margin: 0; font-size: 13.5px; color: var(--yx-muted); }
.yx_more { font-size: 14px; color: var(--yx-blue); font-weight: 600; }
.yx_more i { font-size: 12px; margin-left: 4px; }

/* ② 品类 */
.yx_cats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: -10px; }
.yx_cat { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; min-height: 300px; padding: 26px; overflow: hidden; border-radius: 26px;
    background: var(--yx-blue-d) var(--yx-cat) center / cover no-repeat; color: #fff; }
.yx_cat::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(36, 67, 92, .9) 0%, rgba(36, 67, 92, .15) 60%); transition: opacity .3s; }
.yx_cat > span { position: relative; }
.yx_cat_txt img { width: 52px; height: 52px; padding: 6px; margin-bottom: 12px; border-radius: 14px; background: #fff; }
.yx_cat_txt strong { display: block; font-size: 26px; font-weight: 800; }
.yx_cat_txt small { display: block; margin: 4px 0 12px; font-size: 13.5px; color: rgba(255, 255, 255, .82); }
.yx_cat_txt em { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 16px; background: var(--yx-sun); color: #4A3410; font-size: 13px; font-style: normal; font-weight: 700; }
.yx_cat_thumbs { display: flex; gap: 8px; }
.yx_cat_thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .9); }

/* ③ 网格 */
.yx_grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ④ 厨房好物 */
.yx_feature { display: grid; grid-template-columns: 380px 1fr; gap: 22px; }
.yx_feature_pic { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 360px; padding: 28px; overflow: hidden; border-radius: 26px; background: var(--yx-blue-d) var(--yx-f) center / cover; color: #fff; }
.yx_feature_pic::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(36, 67, 92, .92), rgba(36, 67, 92, .2) 65%); }
.yx_feature_pic > * { position: relative; }
.yx_feature_pic span { font: 700 12px/1 Arial, sans-serif; letter-spacing: .3em; color: var(--yx-sun); }
.yx_feature_pic strong { margin: 10px 0 6px; font-size: 28px; }
.yx_feature_pic p { margin: 0 0 16px; color: rgba(255, 255, 255, .8); }
.yx_feature_pic a { align-self: flex-start; padding: 8px 18px; border-radius: 18px; background: #fff; color: var(--yx-blue-d); font-weight: 700; font-size: 13.5px; }
.yx_feature_list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.yx_feature_item { display: flex; gap: 14px; padding: 14px; background: #fff; border-radius: 20px; transition: box-shadow .25s; }
.yx_feature_item:hover { box-shadow: 0 14px 30px rgba(36, 67, 92, .10); }
.yx_feature_item img { width: 120px; height: 120px; flex-shrink: 0; object-fit: cover; border-radius: 14px; background: var(--yx-blue-s); }
.yx_feature_item span { display: flex; flex-direction: column; min-width: 0; }
.yx_feature_item strong { font-size: 14.5px; line-height: 1.5; color: var(--yx-ink); }
.yx_feature_item small { margin: 6px 0; font-size: 12.5px; line-height: 1.7; color: var(--yx-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yx_feature_item b { margin-top: auto; color: var(--yx-price); font-size: 18px; }

/* ⑤ 榜单 */
.yx_ranks { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.yx_rank { padding: 22px; background: #fff; border-radius: 24px; }
.yx_rank h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 18px; color: var(--yx-blue-d); }
.yx_rank h3 img { width: 34px; height: 34px; }
.yx_rank ol { list-style: none; margin: 0; padding: 0; }
.yx_rank a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--yx-line); }
.yx_rank li:first-child a { border-top: 0; }
.yx_rank b { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; background: var(--yx-cream); color: var(--yx-muted); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.yx_rank li:nth-child(1) b { background: var(--yx-sun); color: #4A3410; }
.yx_rank li:nth-child(2) b, .yx_rank li:nth-child(3) b { background: var(--yx-blue-s); color: var(--yx-blue-d); }
.yx_rank img { width: 54px; height: 54px; flex-shrink: 0; object-fit: cover; border-radius: 10px; }
.yx_rank span { flex: 1; min-width: 0; }
.yx_rank strong { display: block; font-size: 14px; font-weight: 500; color: var(--yx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yx_rank small { font-size: 12px; color: var(--yx-muted); }
.yx_rank em { flex-shrink: 0; font-style: normal; font-weight: 700; color: var(--yx-price); }
.yx_rank a:hover strong { color: var(--yx-blue); }

/* ⑥ 商家 */
.yx_shops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.yx_shop { display: flex; flex-direction: column; padding: 22px; background: #fff; border-radius: 22px; transition: transform .25s, box-shadow .25s; }
.yx_shop:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(36, 67, 92, .10); }
.yx_shop_ava { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 16px; background: var(--yx-blue); color: #fff; font-size: 22px; font-weight: 800; }
.yx_shop strong { font-size: 15.5px; line-height: 1.5; color: var(--yx-ink); }
.yx_shop p { margin: 8px 0 14px; font-size: 13px; line-height: 1.75; color: var(--yx-text); }
.yx_shop_ft { display: flex; justify-content: space-between; margin-top: auto; font-size: 12.5px; }
.yx_shop_ft em { font-style: normal; color: #3A8A5B; }
.yx_shop_ft b { color: var(--yx-blue-d); }
.yx_shop_join { background: var(--yx-sun-s); border: 1px dashed #EBC77A; }
.yx_shop_join .yx_shop_ava { background: var(--yx-sun); color: #4A3410; }

/* ⑦ 介绍 */
.yx_about { display: grid; grid-template-columns: 420px 1fr; gap: 50px; align-items: center; padding: 34px; background: #fff; border-radius: 30px; }
.yx_about_pic img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 22px; }
.yx_about_txt h2 { margin: 0 0 16px; font-size: 28px; font-weight: 800; color: var(--yx-blue-d); }
.yx_about_txt p { margin: 0 0 12px; font-size: 14.5px; line-height: 2; color: var(--yx-text); }
.yx_about_key { padding: 12px 16px; border-radius: 12px; background: var(--yx-sun-s); color: #6E4F15 !important; }
.yx_steps { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 20px; }
.yx_steps > div { flex: 1; text-align: center; }
.yx_steps img { width: 54px; height: 54px; margin: 0 auto 6px; }
.yx_steps strong { font-size: 13.5px; color: var(--yx-ink); }
.yx_steps > i { color: var(--yx-blue-l); }

@media (max-width: 1100px) {
    .yx_grid4, .yx_shops { grid-template-columns: repeat(3, 1fr); }
    .yx_feature { grid-template-columns: 1fr; }
    .yx_feature_pic { min-height: 260px; }
}
@media (max-width: 900px) {
    .yx_hero { height: auto; }
    .yx_hero > .yx_wrap { padding-top: 220px; padding-bottom: 24px; }
    .yx_hero_card { width: 100%; }
    .yx_cats, .yx_ranks, .yx_about { grid-template-columns: 1fr; }
    .yx_grid4, .yx_shops, .yx_feature_list { grid-template-columns: 1fr 1fr; }
    .yx_about_pic { max-width: 380px; }
}
@media (max-width: 560px) {
    .yx_hero_card h1 { font-size: 27px; }
    .yx_feature_list, .yx_shops { grid-template-columns: 1fr; }
    .yx_grid4 { gap: 12px; }
    .yx_cat_thumbs { display: none; }
    .yx_steps > i { display: none; }
}
