.cardstyle-goods-page .portfolio-grid figure a.goods {
    position: relative;
    display: flex;
    flex-direction: column;
}
.cardstyle-goods-page.yfk-pc-columns-2 .portfolio-grid.three-columns figure { width: 50% !important; }
.cardstyle-goods-page.yfk-pc-columns-3 .portfolio-grid.three-columns figure { width: 33.33333% !important; }
.cardstyle-goods-page.yfk-pc-columns-4 .portfolio-grid.three-columns figure { width: 25% !important; }
.comm-height { height: 130px; position: relative; }
@media only screen and (max-width: 768px) {
    .cardstyle-goods-page.yfk-mobile-columns-1 .portfolio-grid.three-columns figure { width: 100% !important; }
    .cardstyle-goods-page.yfk-mobile-columns-2 .portfolio-grid.three-columns figure { width: 50% !important; }
    .comm-height { height: 100px; }
    .yfk-mobile-search-off .portfolio-content .search { display: none !important; }
}
@media only screen and (max-width: 480px) {
    .cardstyle-goods-page.yfk-mobile-columns-1 .comm-height { height: 160px; }
}
.category-icon { height: 20px; width: 20px; border-radius: 4px; position: absolute; opacity: 0.85; }
.category-right { margin-left: 26px; }
.search .search-btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px !important;
    padding: 12px 22px !important;
    border: none !important;
    background: var(--theme-primary, #7c4dff) !important;
    color: #fff !important;
    cursor: pointer;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    transition: background 0.25s;
    margin-right: 2px;
}
.search .search-btn:hover { background: var(--theme-secondary, #448aff) !important; }
.portfolio-grid.three-columns .goods .portfolio-item-img {
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    position: relative;
}
.portfolio-grid.three-columns .goods .portfolio-item-img .comm-height {
    border-radius: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.portfolio-grid.three-columns .goods:hover .portfolio-item-img .comm-height { transform: scale(1.06); }
.notice-bar {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(124,77,255,0.04), rgba(68,138,255,0.04));
    border-radius: 12px;
    color: #555;
    font-size: 14px;
    line-height: 1.8;
    border-left: 4px solid var(--theme-primary, #7c4dff);
    position: relative;
}
.notice-bar::before {
    content: '\f0a1';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
    color: var(--theme-primary, #7c4dff);
    opacity: 0.7;
}
.yfk-type-badge {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    padding: 2px 8px; border-radius: 12px;
    font-size: 10px; font-weight: 600; color: #fff; white-space: nowrap;
    line-height: 1.6;
}
.yfk-tb-blue { background: linear-gradient(135deg,#00c6ff,#0072ff); box-shadow: 0 2px 6px rgba(0,114,255,0.35); }
.yfk-tb-green { background: linear-gradient(135deg,#43e97b,#38f9d7); box-shadow: 0 2px 6px rgba(56,249,215,0.35); color: #1a5c45; }
.yfk-tb-orange { background: linear-gradient(135deg,#ff9800,#f57c00); box-shadow: 0 2px 6px rgba(255,152,0,0.35); }
.yfk-tb-purple { background: linear-gradient(135deg,#a18cd1,#fbc2eb); box-shadow: 0 2px 6px rgba(161,140,209,0.35); color: #4a1a6b; }
.yfk-tb-gray { background: linear-gradient(135deg,#b0bec5,#90a4ae); box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.yfk-soldout-mask {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); display: flex;
    align-items: center; justify-content: center; z-index: 3;
    border-radius: 16px 16px 0 0;
}
.yfk-soldout-mask span {
    color: #fff; font-size: 13px; font-weight: 600;
    padding: 4px 14px; background: rgba(0,0,0,0.45);
    border-radius: 16px; letter-spacing: 1px;
}
.yfk-card-soldout { opacity: 0.8; }
.yfk-card-soldout:hover { opacity: 1; }
.yfk-goods-desc {
    font-size: 12px; color: #999; line-height: 1.5;
    margin: 0 10px 4px; height: 18px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.yfk-goods-desc .yfk-desc-empty { opacity: 0.35; font-style: normal; }
.yfk-goods-meta {
    display: flex; align-items: center; gap: 6px;
    margin: 0 10px 4px; flex-wrap: wrap;
    height: 16px;
}
.yfk-goods-meta span { font-size: 11px; color: #bbb; }
.yfk-goods-meta .yfk-meta-dot { color: #ddd; }
.yfk-price-row {
    height: 38px;
    overflow: hidden;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-right: 12px;
}
.yfk-price-wrap { min-width: 0; display: flex; align-items: baseline; flex-wrap: nowrap; overflow: hidden; }
.yfk-price-wrap .b_price { flex-shrink: 0; padding-right: 5px; }
.yfk-price-wrap .price-suffix { font-size: 12px; color: #999; font-weight: normal; margin-left: 2px; }
.yfk-price-wrap .b_market_price { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yfk-buy-icon, .yfk-buy-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all .2s ease;
}
.yfk-buy-icon { width: 30px; height: 30px; border-radius: 10px; background: rgba(124,77,255,.08); color: var(--theme-primary,#7c4dff); }
.yfk-buy-btn { height: 28px; padding: 0 12px; border-radius: 14px; background: var(--theme-primary,#7c4dff); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.portfolio-grid figure .yfk-buy-icon i {
    display: inline-block;
    position: static;
    top: auto;
    right: auto;
    opacity: 1;
    width: auto;
    height: auto;
    line-height: 1;
    background: transparent;
    color: inherit;
    font-size: 14px;
    transition: none;
}
.portfolio-grid figure .goods:hover .yfk-buy-icon { background: var(--theme-primary,#7c4dff); color: #fff; }
.portfolio-grid figure .goods:hover .yfk-buy-btn { background: var(--theme-secondary,#448aff); }
.yfk-empty-state { text-align: center; padding: 50px 20px 60px; width: 100%; }
.yfk-empty-svg { width: 160px; height: 130px; margin-bottom: 20px; opacity: 0.9; }
.yfk-empty-title { font-size: 16px; font-weight: 600; color: #555; margin: 0 0 8px; }
.yfk-empty-hint { font-size: 13px; color: #aaa; margin: 0 0 20px; }
.yfk-empty-btn {
    display: inline-block; padding: 8px 22px;
    border-radius: 50px; font-size: 13px; font-weight: 500;
    color: #fff !important; background: var(--theme-primary, #7c4dff);
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(124, 77, 255, 0.3);
    transition: all 0.25s ease;
}
.yfk-empty-btn:hover { box-shadow: 0 6px 20px rgba(124, 77, 255, 0.45); transform: translateY(-1px); }
.search form .search-icon { margin-left: 14px; font-size: 14px; color: #bbb; flex-shrink: 0; }
.search form .search-clear { padding: 0 12px; font-size: 14px; color: #ccc; cursor: pointer; flex-shrink: 0; display: none; transition: color 0.2s; }
.search form .search-clear:hover { color: #999; }
.search form .search-clear.visible { display: block; }
.search { margin: 0 0 0; padding: 0; }
.portfolio-filters.category-list { margin-left: 0; padding-left: 0; }
.portfolio-filters.category-list li:first-child { margin-left: 0; }
.yfk-filter-bar { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 5px 0 10px; margin: 0 0 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.yfk-filter-bar::-webkit-scrollbar { display: none; }
.yfk-filter-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px; padding: 5px 15px; border-radius: 20px; font-size: 12px; font-weight: 500; text-decoration: none !important; color: #666; background: rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.06); transition: all 0.2s; white-space: nowrap; }
.yfk-filter-chip:hover { color: var(--theme-primary, #7c4dff); border-color: var(--theme-primary, #7c4dff); }
.yfk-filter-chip.active { color: var(--theme-primary, #7c4dff); background: transparent; border-color: var(--theme-primary, #7c4dff); font-weight: 600; }
.yfk-filter-chip .fas { font-size: 11px; }
.yfk-pagination { margin-top: 24px; padding: 16px 0; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.yfk-pagination .btn.ghost { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 50px; font-size: 13px; font-weight: 500; color: #888; background: transparent; border: none; text-decoration: none !important; transition: all 0.25s ease; cursor: pointer; }
.yfk-pagination .btn.ghost:hover { color: var(--theme-primary, #7c4dff); background: rgba(124, 77, 255, 0.08); }
.yfk-pagination .btn.ghost.active { color: #fff; background: var(--theme-primary, #7c4dff); box-shadow: 0 4px 12px rgba(124, 77, 255, 0.3); cursor: default; }
.yfk-pagination em.btn.ghost { min-width: auto; padding: 0 4px; color: #ccc; cursor: default; font-style: normal; background: transparent; }
.yfk-pagination em.btn.ghost:hover { background: transparent; color: #ccc; }
.yfk-roll-notice-bar { display: flex; align-items: center; overflow: hidden; padding: 10px 16px; margin-bottom: 14px; border-radius: 10px; background: linear-gradient(135deg, rgba(124,77,255,0.06), rgba(68,138,255,0.06)); border-left: 3px solid var(--theme-primary, #7c4dff); font-size: 13px; color: #555; min-height: 40px; }
.yfk-roll-notice-icon, .yfk-roll-notice-bar .fas { color: var(--theme-primary, #7c4dff); flex-shrink: 0; }
.yfk-roll-notice-icon { margin-right: 7px; opacity: .7; }
.yfk-roll-vticker { overflow: hidden; height: 1.5em; flex: 1; }
.yfk-roll-vtrack { transition: transform 0.45s ease; }
.yfk-roll-vitem { height: 1.5em; line-height: 1.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media only screen and (min-width: 769px) { .yfk-list-float-help { display: none !important; } }
.yfk-list-float-help { position: fixed; right: 15px; top: 50%; transform: translateY(-50%); z-index: 98; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--theme-primary,#7c4dff), var(--theme-secondary,#448aff)); color: #fff; box-shadow: 0 8px 24px rgba(124,77,255,.28); text-decoration: none !important; transition: transform .25s ease, opacity .25s ease; }
.yfk-list-float-help:hover { transform: translateY(-50%) scale(1.08); color: #fff; }
.yfk-list-float-help img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.yfk-list-float-help i { font-size: 18px; }
@media only screen and (max-width: 768px) { .yfk-list-float-help { right: 10px; width: 38px; height: 38px; } }

.cardstyle-category-path { margin: 0 0 18px; }
.cardstyle-category-path-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 10px; }
.cardstyle-category-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0; color: #9aa1ad; font-size: 13px; }
.cardstyle-category-breadcrumb a { color: #7b8493; text-decoration: none; }
.cardstyle-category-breadcrumb a:hover { color: var(--theme-primary, #7c4dff); }
.cardstyle-category-breadcrumb .is-current { color: #2f3745; font-weight: 600; }
.cardstyle-category-breadcrumb .cardstyle-category-separator { color: #c7ccd5; }
.cardstyle-category-level { position: relative; display: flex; flex-wrap: wrap; gap: 9px; max-height: 113px; margin: 0; padding: 0; overflow: hidden; list-style: none; }
.cardstyle-category-level.has-overflow::after { position: absolute; right: 0; bottom: 0; left: 0; height: 20px; background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.82)); content: ''; pointer-events: none; }
.cardstyle-category-level.is-expanded { max-height: none; }
.cardstyle-category-level.is-expanded::after { display: none; }
.cardstyle-category-level a { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 14px; border: 1px solid #eef0f5; border-radius: 20px; background: #fff; color: #697386; text-decoration: none; white-space: nowrap; box-shadow: 0 4px 12px rgba(35,45,65,.035); transition: border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.cardstyle-category-level a:hover { border-color: rgba(124,77,255,.35); color: var(--theme-primary, #7c4dff); transform: translateY(-1px); box-shadow: 0 7px 16px rgba(35,45,65,.08); }
.cardstyle-category-level a.is-active { border-color: var(--theme-primary, #7c4dff); color: var(--theme-primary, #7c4dff); font-weight: 600; }
.cardstyle-category-level img { width: 22px; height: 22px; flex: 0 0 22px; object-fit: cover; border-radius: 6px; }
.cardstyle-category-toggle { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 0; border: 0; color: var(--theme-primary, #7c4dff) !important; background: transparent; font-size: 13px; cursor: pointer; }
.cardstyle-category-toggle:hover { color: var(--theme-primary, #7c4dff) !important; opacity: .78; }
.cardstyle-category-toggle i { font-size: 11px; transition: transform .2s ease; }
.cardstyle-category-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.cardstyle-goods-page.is-category-loading .portfolio-content { opacity: .58; pointer-events: none; transition: opacity .16s ease; }
@media only screen and (max-width: 768px) {
    .cardstyle-category-path { display: block; margin: 0 0 14px; padding: 0 1px; }
    .cardstyle-category-path-header { gap: 10px; margin-bottom: 8px; }
    .cardstyle-category-breadcrumb { min-width: 0; flex: 1 1 auto; flex-wrap: nowrap; overflow: hidden; font-size: 12px; white-space: nowrap; }
    .cardstyle-category-breadcrumb a,
    .cardstyle-category-breadcrumb .is-current { overflow: hidden; text-overflow: ellipsis; }
    .cardstyle-category-level { gap: 7px; max-height: 103px; }
    .cardstyle-category-level.has-overflow::after { height: 18px; }
    .cardstyle-category-level a { min-height: 34px; gap: 6px; padding: 6px 11px; font-size: 12px; }
    .cardstyle-category-level img { width: 19px; height: 19px; flex-basis: 19px; border-radius: 5px; }
    .cardstyle-category-toggle { gap: 4px; font-size: 12px; white-space: nowrap; }
}

.yfk-card-cover { background-position: center center; background-repeat: no-repeat; background-size: cover; border-top-left-radius: 15px; border-top-right-radius: 15px; }
