/* =========================================================
   1688 瘦身衣 SEM 落地页 · 静态克隆样式
   结构：顶部工具栏 / 搜索头部 / 您是否在找 / 商品列表 /
         分页 / 猜你喜欢 / 页脚 / 右侧采购助手
   ========================================================= */

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
    font-size: 12px;
    color: #333;
    background: #f7f7f7;
    -webkit-font-smoothing: antialiased;
}
img { border: 0; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
ul, li { list-style: none; margin: 0; padding: 0; }

html[dir="rtl"] body {
    direction: rtl;
    font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.container { width: 1190px; margin: 0 auto; }
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- 顶部工具栏 ---------- */
.topbar {
    background: #fff;
    border-bottom: 1px solid #eee;
    height: 32px;
    font-size: 12px;
    color: #666;
    overflow: hidden;
}
.topbar-inner {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}
.tb-left, .tb-right { display: flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; }
.topbar a { color: #666; white-space: nowrap; }
.topbar a:hover { color: #ff6000; }
.tb-phone-dot {
    display: inline-block;
    width: 10px; height: 10px;
    background: #ff6000;
    border-radius: 2px;
    margin-inline-end: 4px;
    vertical-align: -1px;
}
.tb-msg { position: relative; }
.tb-badge {
    display: inline-block;
    background: #ff6000;
    color: #fff;
    font-size: 9px;
    line-height: 12px;
    border-radius: 7px;
    padding: 0 3px;
    margin-inline-start: 3px;
    font-style: normal;
    vertical-align: 1px;
}
.tb-num { color: #ff6000; font-weight: 600; margin-inline-start: 2px; }
.caret {
    display: inline-block;
    width: 0; height: 0;
    border: 4px solid transparent;
    border-top-color: #999;
    margin-top: 4px;
    vertical-align: 1px;
}

/* ---------- 搜索头部 ---------- */
.site-header { position: sticky; top: 0; z-index: 999; background: #fff; }
.header-inner { height: 88px; display: flex; align-items: center; }
.logo {
    width: 213px; height: 40px;
    background: url(../images/logo.svg) no-repeat left center / contain;
    flex: none;
}
html[dir="rtl"] .logo { background-position: right center; }

.search {
    margin-inline-start: 192px;
    width: 530px; height: 44px;
    border: 2px solid #ff6000;
    border-radius: 2px;
    display: flex;
    align-items: center;
    background: #fff;
}
.search-input {
    flex: 1; min-width: 0;
    height: 100%;
    border: none; outline: none;
    font-size: 13px;
    color: #333;
    padding: 0 10px;
    background: transparent;
}
.search-camera {
    width: 40px; flex: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.search-camera img { width: 26px; }
.search-btn {
    width: 118px; height: 100%;
    border: none;
    background: #ff6000;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
.search-btn:hover { background: #ff5000; }
.header-qr { margin-inline-start: auto; width: 44px; height: 44px; flex: none; }
.header-qr img { width: 44px; height: 44px; display: block; }

/* ---------- 您是否在找 ---------- */
.find-bar {
    margin-top: 20px;
    height: 41px;
    border: 1px solid #e5e5e5;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    font-size: 12px;
    color: #666;
    overflow: hidden;
}
.find-bar.expanded { height: auto; padding-top: 9px; padding-bottom: 9px; align-items: flex-start; }
.find-label { color: #999; flex: none; }
.find-links {
    flex: 1; min-width: 0;
    display: flex;
    gap: 22px;
    white-space: nowrap;
    overflow: hidden;
}
.find-bar.expanded .find-links { flex-wrap: wrap; white-space: normal; overflow: visible; row-gap: 8px; }
.find-links a { color: #666; flex: none; }
.find-links a:hover { color: #ff6000; }
.find-more {
    width: 26px; height: 26px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    flex: none;
    cursor: pointer;
    position: relative;
    padding: 0;
}
.find-more i {
    position: absolute;
    left: 50%; top: 50%;
    width: 7px; height: 7px;
    border-right: 1px solid #999;
    border-bottom: 1px solid #999;
    transform: translate(-50%, -70%) rotate(45deg);
}
.find-bar.expanded .find-more i { transform: translate(-50%, -30%) rotate(225deg); }

/* ---------- 商品列表 ---------- */
main.container { margin-top: 0; }
.offer-list {
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    background: #f5f5f5;
}
.offer-card {
    width: 222px;
    height: 322px;
    margin-inline-end: 11px;
    margin-bottom: 20px;
    background: #fff;
    position: relative;
    transition: box-shadow .2s ease, transform .2s ease;
}
.offer-card:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, .12); transform: translateY(-2px); }
.card-link { display: block; height: 100%; }

.offer-img {
    width: 222px; height: 222px;
    position: relative;
    overflow: hidden;
    background: #f7f7f7;
}
.offer-img .main-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-badge {
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    height: 24px;
    padding: 0 9px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 12px;
    border-radius: 0 12px 12px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
html[dir="rtl"] .video-badge { border-radius: 12px 0 0 12px; }
.video-badge::before {
    content: "";
    width: 0; height: 0;
    border-left: 5px solid #fff;
    border-top: 3.5px solid transparent;
    border-bottom: 3.5px solid transparent;
}

.offer-title {
    height: 34px;
    padding: 4px 6px 0;
    font-size: 12px;
    line-height: 15px;
    color: #333;
    overflow: hidden;
}
.offer-title span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.offer-title .title-badge {
    height: 16px;
    margin-inline-end: 3px;
    vertical-align: -3px;
    display: inline-block;
}

.offer-price {
    height: 36px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
}
.price { color: #ff5000; display: inline-flex; align-items: baseline; flex: none; direction: ltr; unicode-bidi: isolate; }
.price .sym { font-size: 12px; font-style: normal; }
.price .int { font-size: 20px; font-weight: 700; font-family: Arial, "Helvetica Neue", sans-serif; font-style: normal; }
.price .dec { font-size: 14px; font-weight: 700; font-family: Arial, "Helvetica Neue", sans-serif; font-style: normal; }
.sold { font-size: 12px; color: #999; margin-inline-start: 2px; }
.promo {
    font-size: 11px;
    line-height: 14px;
    color: #ff4000;
    background: #fff1ec;
    border: 1px solid #ffd9cc;
    border-radius: 2px;
    padding: 0 3px;
    flex: none;
}

.offer-company {
    height: 30px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
}
.shop-badge { height: 16px; flex: none; }
.offer-tags { display: flex; align-items: center; gap: 4px; overflow: hidden; }
.tag {
    font-size: 11px;
    line-height: 14px;
    color: #999;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    padding: 0 3px;
    white-space: nowrap;
    flex: none;
}
.ww-icon { width: 18px; height: 18px; margin-inline-start: auto; margin-inline-end: 3px; flex: none; }

/* ---------- 分页 ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 0 40px;
    font-size: 13px;
    color: #333;
    background: #f7f7f7;
}
.pg-btn {
    height: 34px;
    min-width: 34px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.pg-btn:hover { border-color: #ff6000; color: #ff6000; }
.pg-btn.current { background: #ff6000; border-color: #ff6000; color: #fff; }
.pg-btn[disabled] { color: #bbb; cursor: default; }
.pg-btn[disabled]:hover { border-color: #ddd; color: #bbb; }
.pg-arrow {
    display: inline-block;
    width: 6px; height: 6px;
    border-top: 1px solid currentColor;
    border-left: 1px solid currentColor;
}
.pg-prev .pg-arrow { transform: rotate(-45deg); }
.pg-next .pg-arrow { transform: rotate(135deg); }
.pg-ellipsis { padding: 0 4px; color: #999; }
.pg-display { margin: 0 8px; color: #666; }
.pg-display em { font-style: normal; color: #ff6000; font-weight: 600; }
.pg-jump { display: inline-flex; align-items: center; gap: 4px; color: #666; }
.pg-jump input {
    width: 42px; height: 30px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
    font-size: 13px;
    outline: none;
}
.pg-jump input:focus { border-color: #ff6000; }
.pg-ok {
    height: 30px;
    padding: 0 9px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    color: #333;
    cursor: pointer;
}
.pg-ok:hover { border-color: #ff6000; color: #ff6000; }

/* ---------- 猜你喜欢 ---------- */
.guess { padding: 6px 0 46px; background: #f7f7f7; }
.guess-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding-inline-start: 10px;
    border-inline-start: 4px solid #ff6000;
    line-height: 20px;
}
.guess-list { display: flex; flex-wrap: wrap; gap: 20px; }
.guess-card { width: 160px; display: block; background: #fff; transition: box-shadow .2s ease; }
.guess-card:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.guess-img { width: 160px; height: 160px; background: #f5f5f5; overflow: hidden; }
.guess-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.guess-price { padding: 8px 10px 0; }
.guess-price .price .int { font-size: 18px; }
.guess-price .price .dec { font-size: 13px; }
.guess-name {
    padding: 4px 10px 0;
    font-size: 12px;
    line-height: 18px;
    height: 40px;
    color: #333;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ---------- 页脚 ---------- */
.site-footer {
    background: #ebebeb;
    padding: 26px 0 30px;
    font-size: 12px;
    color: #666;
}
.footer-inner { display: flex; gap: 40px; }
.footer-brand { width: 182px; flex: none; padding-top: 4px; }
.footer-brand img { width: 182px; display: block; }
.footer-link { flex: 1; min-width: 0; }
.inner-row { line-height: 26px; color: #666; }
.inner-row a { color: #666; }
.inner-row a:hover { color: #ff6000; }
.inner-row i { font-style: normal; color: #cfcfcf; margin: 0 8px; }
.outer-row { line-height: 24px; color: #999; margin-top: 4px; }
.outer-row a { color: #999; }
.outer-row a:hover { color: #ff6000; }
.beian-icon { width: 16px; height: 16px; vertical-align: -3px; margin-inline-end: 4px; }
.logo-list { margin-top: 14px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo-list a {
    display: block;
    height: 30px;
    background-image: url(../images/footer-sprite.png);
    background-repeat: no-repeat;
}
.logo-list .c1 { width: 73px; background-position: 0 0; }
.logo-list .c2 { width: 73px; background-position: -175px 0; }
.logo-list .c3 { width: 85px; background-position: -334px 0; }
.logo-list .c4 { width: 171px; background-position: -535px 0; }
.logo-list .c5 { width: 111px; background-position: -715px 0; }
.access-img { height: 33px; }

/* ---------- 采购助手 ---------- */
.leads-panel {
    position: fixed;
    top: 34px;
    inset-inline-end: calc(50% - 550px);
    width: 280px;
    height: 482px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
    z-index: 999;
    overflow: hidden;
}
.leads-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 10px;
}
.leads-head-left { display: flex; align-items: center; gap: 8px; }
.leads-head-left img { width: 26px; height: 26px; }
.leads-head-left span { font-size: 16px; font-weight: 600; color: #333; }
.leads-close {
    border: none; background: none;
    font-size: 24px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0 2px;
}
.leads-close:hover { color: #666; }
.leads-body { padding: 0 18px 16px; }
.leads-tip {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 19px;
    color: #666;
}
.leads-field { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.leads-label {
    width: 72px;
    flex: none;
    padding-top: 9px;
    font-size: 12px;
    line-height: 16px;
    color: #333;
}
html:not([lang^="zh"]) .leads-label { width: 78px; font-size: 11px; }
html:not([lang^="zh"]) .topbar-inner { font-size: 11px; }
html:not([lang^="zh"]) .tb-left, html:not([lang^="zh"]) .tb-right { gap: 8px; }
html:not([lang^="zh"]) .leads-textarea { font-size: 11px; }
.leads-label i { color: #ff4000; font-style: normal; margin-inline-end: 2px; }
.leads-input {
    flex: 1; min-width: 0;
    height: 34px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 12px;
    color: #333;
    outline: none;
    background: #fff;
}
.leads-textarea {
    flex: 1; min-width: 0;
    height: 84px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 11px;
    line-height: 16px;
    color: #333;
    resize: none;
    outline: none;
    background: #fff;
}
.leads-textarea::placeholder { color: #bbb; }
.leads-input:focus, .leads-textarea:focus, .leads-select:focus { border-color: #ff6000; }
.leads-select {
    flex: 1; min-width: 0;
    height: 34px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    font-size: 12px;
    color: #333;
    cursor: default;
    text-align: start;
}
.leads-select span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leads-login {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    font-size: 11px;
    color: #999;
}
.leads-info {
    width: 14px; height: 14px;
    flex: none;
    border-radius: 50%;
    background: #2f9bff;
    color: #fff;
    font-size: 10px;
    line-height: 14px;
    text-align: center;
    font-style: italic;
}
.leads-login a { color: #2f9bff; margin-inline-start: 2px; }
.leads-protocol { margin-top: 8px; font-size: 11px; color: #666; }
.leads-protocol a { color: #ff6000; }
.leads-submit {
    width: 100%;
    height: 36px;
    margin-top: 10px;
    border: none;
    border-radius: 6px;
    background: #ff6000;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}
.leads-submit:hover { background: #ff5000; }

.leads-tab {
    position: fixed;
    top: 377px;
    inset-inline-end: 0;
    width: 66px;
    height: 78px;
    background: #fff;
    border: 1px solid #eee;
    border-inline-end: none;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    color: #333;
    cursor: pointer;
    z-index: 998;
    padding: 0;
}
html[dir="rtl"] .leads-tab { border-radius: 0 12px 12px 0; }
.leads-tab img { width: 26px; height: 26px; }
.leads-panel.is-hidden { display: none; }
.leads-tab.is-shown { display: flex; }

/* ---------- 自适应 ---------- */
@media (max-width: 1220px) {
    .container { width: 100%; padding-inline: 16px; }
    .search { margin-inline-start: 30px; flex: 1; width: auto; max-width: 530px; }
    .tb-right a:nth-child(n+8) { display: none; }
    .offer-list { justify-content: center; }
}

@media (max-width: 900px) {
    .topbar { display: none; }
    .header-inner { height: 68px; }
    .logo { width: 160px; height: 30px; }
    .search { margin-inline-start: 16px; height: 40px; }
    .search-btn { width: 84px; font-size: 14px; }
    .header-qr { display: none; }
    .leads-panel, .leads-tab { display: none !important; }
    .find-links { gap: 14px; }
    .find-bar { margin-top: 12px; }
    .footer-inner { flex-direction: column; gap: 16px; }
    .pagination { padding: 18px 0 28px; }
}

@media (max-width: 640px) {
    .offer-list { justify-content: space-between; gap: 12px; padding-top: 12px; background: transparent; }
    .offer-card {
        width: calc(50% - 6px);
        height: auto;
        margin-inline-end: 0;
        margin-bottom: 0;
        background: #fff;
        border-radius: 4px;
        overflow: hidden;
    }
    .offer-img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
    .offer-title { height: auto; max-height: 34px; }
    .offer-company { height: auto; padding-bottom: 8px; flex-wrap: wrap; row-gap: 4px; }
    .pagination { flex-wrap: wrap; row-gap: 8px; padding: 16px 0 24px; }
    .pg-display, .pg-jump { display: none; }
    .guess-card { width: calc(50% - 6px); }
    .guess-img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
    .guess-list { gap: 12px; }
    .footer-brand img { width: 160px; }
    .logo-list { gap: 10px; }
    .logo-list .c4 { width: 145px; background-position: -455px 0; }
}
