/* 搜索页 V2 */
:root {
    --sr-v2-orange: #ff6600;
    --sr-v2-orange-light: #ff8533;
    --sr-v2-bg: #f5f5f5;
    --sr-v2-card-radius: 14px;
}

body.sr-v2-page {
    background: var(--sr-v2-bg);
    padding-bottom: 88px;
}

.sr-v2-top {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    padding: 10px 12px 8px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.sr-v2-top__bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sr-v2-top__back {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    flex-shrink: 0;
}
.sr-v2-top__back .tciconfont {
    font-size: 20px;
}

.sr-v2-top__form {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    height: 38px;
    background: #f3f3f3;
    border-radius: 19px;
    padding: 0 12px;
}
.sr-v2-top__form .tciconfont {
    color: #bbb;
    font-size: 16px;
    margin-right: 6px;
    flex-shrink: 0;
}
.sr-v2-top__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
}
.sr-v2-top__input::placeholder {
    color: #bbb;
}

.sr-v2-top__btn {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--sr-v2-orange);
    padding: 0 4px;
}

.sr-v2-filters {
    display: flex;
    gap: 8px;
    padding: 8px 12px 10px;
    background: #fff;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.sr-v2-filters::-webkit-scrollbar {
    display: none;
}

.sr-v2-filter {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 14px;
    background: #f3f3f3;
    border-radius: 16px;
    font-size: 13px;
    color: #333;
    border: 0;
}
.sr-v2-filter.on {
    color: var(--sr-v2-orange);
    background: #fff5ee;
}
.sr-v2-filter .tciconfont {
    font-size: 10px;
    color: #999;
}

.sr-v2-hot {
    padding: 12px;
}
.sr-v2-hot__title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}
.sr-v2-hot__box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sr-v2-hot__item {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    border-radius: 16px;
    font-size: 13px;
    color: #666;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.sr-v2-main {
    padding: 0 12px 16px;
    max-width: 760px;
    margin: 0 auto;
}

.sr-v2-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: var(--sr-v2-card-radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.sr-v2-card--top {
    background: linear-gradient(180deg, #fff0f0 0%, #fff8f8 38%, #ffffff 100%);
    box-shadow: 0 2px 10px rgba(255, 77, 77, 0.08);
}
.sr-v2-card--top::before {
    display: none;
}

.sr-v2-card__top-badge {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: 34px;
    height: 38px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5px;
    background: linear-gradient(180deg, #ff6b4a 0%, #ff4d4d 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.5px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), 50% 100%, 0 calc(100% - 9px));
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.12);
}
.sr-v2-card__top-badge::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 9px;
    height: 9px;
    background: #d62f2f;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.sr-v2-card--top .sr-v2-card__title {
    color: #1a1a1a;
}

.sr-v2-card--finish {
    opacity: 0.62;
    filter: grayscale(0.25);
}
.sr-v2-card--finish .sr-v2-card__title {
    color: #999;
}
.sr-v2-card__finish-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 11px;
    line-height: 1.4;
}

.sr-v2-card__pic {
    position: relative;
    width: 108px;
    height: 108px;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
    margin-right: 12px;
}
.sr-v2-card__pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sr-v2-card__pic--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff5ee, #ffe8d6);
}
.sr-v2-card__pic--empty .tciconfont {
    font-size: 32px;
    color: var(--sr-v2-orange);
    opacity: 0.25;
}
.sr-v2-card__pic-badge {
    position: absolute;
    right: 6px;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 10px;
}
.sr-v2-card__pic-badge .tciconfont {
    font-size: 10px;
}

.sr-v2-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sr-v2-card__head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.sr-v2-card__title {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sr-v2-card__fav {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #ccc;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sr-v2-card__fav .tciconfont {
    font-size: 20px;
}
.sr-v2-card__fav.on {
    color: #ff4d6a;
}

.sr-v2-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.sr-v2-card__tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    background: #eef6ff;
    color: #3b8cff;
    font-size: 11px;
    line-height: 1.5;
}

.sr-v2-card__price {
    margin-top: auto;
    padding-top: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #ff3b30;
    line-height: 1.2;
}

.sr-v2-card__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 6px;
    font-size: 11px;
    color: #999;
}
.sr-v2-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.sr-v2-card__meta .tciconfont {
    font-size: 12px;
}

.sr-v2-empty,
.sr-v2-loading,
.sr-v2-nomore {
    text-align: center;
    padding: 24px 12px;
    color: #999;
    font-size: 13px;
}

.sr-v2-fab {
    position: fixed;
    right: 16px;
    bottom: 24px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 44px;
    padding: 0 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--sr-v2-orange) 0%, var(--sr-v2-orange-light) 100%);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(255, 102, 0, 0.35);
}
.sr-v2-fab .tciconfont {
    font-size: 16px;
}

.sr-v2-panel-mask {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.35);
    display: none;
}
.sr-v2-panel-mask.show {
    display: block;
}
.sr-v2-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 201;
    background: #fff;
    border-radius: 16px 16px 0 0;
    max-height: 50vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.25s ease;
}
.sr-v2-panel.show {
    transform: translateY(0);
}
.sr-v2-panel__item {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
}
.sr-v2-panel__item.on {
    color: var(--sr-v2-orange);
}
