/* ============================================================
   yx.css — 银欣美优商城 · 骨架（头部 / 页脚 / 商品卡 / 通用）前缀 yx_
   配色：雾蓝 #3E6E8E / 深雾蓝 #24435C + 暖黄 #F2B544 / 琥珀 #DE942A + 米白 #F7F5F0
   头部：暖黄公告细条 + 白底「左导航 · 居中 logo · 右工具」+ 下拉搜索面板
   页脚：白底保障图标带 + 雾蓝主页脚
   ============================================================ */
:root {
    --yx-blue:   #3E6E8E;
    --yx-blue-d: #24435C;
    --yx-blue-l: #7FA6C0;
    --yx-blue-s: #EAF1F6;
    --yx-sun:    #F2B544;
    --yx-amber:  #DE942A;
    --yx-sun-s:  #FDF4E3;
    --yx-cream:  #F7F5F0;
    --yx-ink:    #22313D;
    --yx-text:   #4D5A65;
    --yx-muted:  #8C97A1;
    --yx-line:   #E6E1D8;
    --yx-price:  #D0602B;
}
body { background: var(--yx-cream); color: var(--yx-ink); }
.yx_wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- 头部 ---------- */
.yx_hd { position: sticky; top: 0; z-index: 1000; background: #fff; transition: box-shadow .25s; }
.yx_hd.is_stuck { box-shadow: 0 8px 26px rgba(36, 67, 92, .10); }
.yx_note { background: var(--yx-sun-s); border-bottom: 1px solid #F3E2BD; font-size: 12.5px; color: #7A5A22; }
.yx_note_in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 32px; }
.yx_note_in > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yx_note_in i { margin-right: 6px; color: var(--yx-amber); }
.yx_note_r { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.yx_note_r a { color: #7A5A22; }
.yx_note_r a:hover { color: var(--yx-blue-d); }
.yx_note_r span { font-weight: 700; color: var(--yx-blue-d); }
.yx_hd_main { border-bottom: 1px solid var(--yx-line); }
.yx_hd_in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; gap: 20px; }
.yx_nav { display: flex; align-items: center; gap: 4px; height: 100%; }
.yx_nav a { position: relative; display: flex; align-items: center; height: 100%; padding: 0 12px; font-size: 15px; color: var(--yx-text); white-space: nowrap; }
.yx_nav a:hover { color: var(--yx-blue); }
.yx_nav a.on { color: var(--yx-blue-d); font-weight: 700; }
.yx_nav a.on::after { content: ""; position: absolute; left: 50%; bottom: 14px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--yx-sun); }
.yx_logo { justify-self: center; display: flex; }
.yx_logo img { height: 44px; width: auto; }
.yx_tools { justify-self: end; display: flex; align-items: center; gap: 8px; }
.yx_ico_btn { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; border-radius: 20px; background: var(--yx-cream); color: var(--yx-blue-d); font-size: 14px; cursor: pointer; }
.yx_ico_btn:hover, .yx_ico_btn.on { background: var(--yx-blue-s); color: var(--yx-blue-d); }
.yx_cart em { position: absolute; top: -4px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--yx-price); color: #fff; font: 700 11px/18px Arial, sans-serif; text-align: center; font-style: normal; }
.yx_join { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 20px; background: var(--yx-blue); color: #fff !important; font-size: 14px; font-weight: 600; }
.yx_join:hover { background: var(--yx-blue-d); }
.yx_burger, .yx_only_m { display: none; }
.yx_burger { border: 0; background: none; font-size: 20px; color: var(--yx-blue-d); }
.yx_sdrop { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--yx-line); box-shadow: 0 16px 30px rgba(36, 67, 92, .10);
    max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.yx_sdrop.open { max-height: 160px; }
.yx_sdrop .yx_wrap { padding-top: 18px; padding-bottom: 18px; }
.yx_sdrop_form { display: flex; height: 50px; border: 2px solid var(--yx-blue); border-radius: 25px; overflow: hidden; background: #fff; }
.yx_sdrop_form select { width: 120px; padding: 0 14px; border: 0; border-right: 1px solid var(--yx-line); background: var(--yx-cream); color: var(--yx-text); outline: 0; }
.yx_sdrop_form input { flex: 1; min-width: 0; padding: 0 16px; border: 0; outline: 0; font-size: 15px; }
.yx_sdrop_form button { padding: 0 28px; border: 0; background: var(--yx-blue); color: #fff; font-weight: 600; }
.yx_sdrop_hot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--yx-muted); }
.yx_sdrop_hot a { padding: 3px 12px; border-radius: 14px; background: var(--yx-cream); color: var(--yx-text); }
.yx_sdrop_hot a:hover { background: var(--yx-sun-s); color: #7A5A22; }

/* ---------- 商品卡 ---------- */
.yx_card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 18px; transition: transform .25s, box-shadow .25s; }
.yx_card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(36, 67, 92, .12); }
.yx_card_pic { position: relative; display: block; margin: 10px 10px 0; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 14px; background: linear-gradient(160deg, #EEF4F8 0%, #F7F5F0 100%); }
.yx_card_pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.yx_card:hover .yx_card_pic img { transform: scale(1.05); }
.yx_card_tag { position: absolute; top: 10px; left: 10px; padding: 2px 10px; border-radius: 12px; background: var(--yx-blue); color: #fff; font-size: 12px; font-weight: 600; }
.yx_card_tag_off { background: var(--yx-sun); color: #5A3E0E; }
.yx_card_bd { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; }
.yx_card_name { font-size: 14px; line-height: 1.55; color: var(--yx-ink); min-height: 2.9em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yx_card_name:hover { color: var(--yx-blue); }
.yx_card_shop { margin: 6px 0 10px; font-size: 12px; color: var(--yx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yx_card_shop i { margin-right: 5px; color: var(--yx-blue-l); }
.yx_card_ft { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.yx_price { color: var(--yx-price); font: 800 20px/1 "DIN Alternate", Arial, sans-serif; }
.yx_price small { font-size: 12px; font-weight: 700; }
.yx_card_ft s { font-size: 12px; color: var(--yx-muted); }
.yx_card_go { margin-left: auto; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--yx-blue-s); color: var(--yx-blue-d); font-size: 12px; }
.yx_card:hover .yx_card_go { background: var(--yx-blue); color: #fff; }

/* ---------- 保障带 + 页脚 ---------- */
.yx_promise { background: #fff; border-top: 1px solid var(--yx-line); }
.yx_promise_in { display: grid; grid-template-columns: repeat(5, 1fr); }
.yx_promise_in > div { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 22px 10px; }
.yx_promise_in img { width: 48px; height: 48px; }
.yx_promise_in strong { display: block; font-size: 15px; color: var(--yx-ink); }
.yx_promise_in small { font-size: 12.5px; color: var(--yx-muted); }
.yx_ft { background: linear-gradient(160deg, #2F5672 0%, #24435C 100%); color: rgba(255, 255, 255, .7); font-size: 13.5px; }
.yx_ft_top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; gap: 34px; padding: 50px 0 34px; }
.yx_ft_brand img { height: 42px; width: auto; margin-bottom: 14px; }
.yx_ft_brand p { margin: 0 0 14px; line-height: 1.9; }
.yx_ft_join { color: var(--yx-sun); font-weight: 600; }
.yx_ft h4 { margin: 4px 0 16px; font-size: 15px; color: #fff; }
.yx_ft_col a { display: block; margin-bottom: 10px; color: rgba(255, 255, 255, .7); }
.yx_ft_col a:hover, .yx_ft_join:hover { color: var(--yx-sun); }
.yx_ft_contact > strong { display: block; font: 800 24px/1.3 "DIN Alternate", Arial, sans-serif; color: var(--yx-sun); }
.yx_ft_contact > small { display: block; margin-bottom: 12px; font-size: 12px; color: rgba(255, 255, 255, .5); }
.yx_ft_contact ul { list-style: none; margin: 0; padding: 0; }
.yx_ft_contact li { display: flex; gap: 8px; margin-bottom: 8px; line-height: 1.7; }
.yx_ft_contact li i { margin-top: 5px; color: var(--yx-sun); width: 14px; flex-shrink: 0; }
.yx_ft_note { padding: 14px 18px; border-radius: 12px; background: rgba(0, 0, 0, .14); font-size: 12.5px; line-height: 1.85; color: rgba(255, 255, 255, .6); }
.yx_ft_note b { margin-right: 8px; color: var(--yx-sun); }
.yx_ft_copy { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding: 20px 0 24px; font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.yx_ft_copy a { color: rgba(255, 255, 255, .65); }
.yx_ft_copy a:hover { color: var(--yx-sun); }
.zh_scroll_top { background: var(--yx-blue) !important; color: #fff !important; border: 0 !important; }

@media (max-width: 1100px) {
    .yx_nav a { padding: 0 8px; font-size: 14px; }
    .yx_ico_btn span { display: none; }
    .yx_ft_top { grid-template-columns: 1fr 1fr 1fr; }
    .yx_ft_brand, .yx_ft_contact { grid-column: span 3; }
}
@media (max-width: 900px) {
    .yx_hd_in { grid-template-columns: auto 1fr auto; height: 62px; }
    .yx_burger, .yx_only_m { display: inline-flex; align-items: center; justify-content: center; }
    .yx_nav, #yx_search_btn, .yx_note_r a:not(#zh_feedback_btn), .yx_join { display: none; }
    .yx_logo { justify-self: start; }
    .yx_logo img { height: 34px; }
    .yx_promise_in { grid-template-columns: repeat(3, 1fr); }
    .yx_ft_top { grid-template-columns: 1fr 1fr; }
    .yx_ft_brand, .yx_ft_contact { grid-column: span 2; }
}
@media (max-width: 560px) {
    .yx_note_r { display: none; }
    .yx_promise_in { grid-template-columns: 1fr 1fr; }
}
