/**
 * 用户端首页 V2 — 样例图还原
 */
:root {
    --idx-v2-orange: #ff6600;
    --idx-v2-orange-light: #ff8533;
    --idx-v2-orange-bg: #fff5ee;
    --idx-v2-text: #1a1a1a;
    --idx-v2-sub: #999;
    --idx-v2-card-shadow: 0 2px 12px rgba(255, 102, 0, 0.08);
    --idx-v2-radius: 14px;
}

body.idx-v2-page {
    background: #f5f5f5;
    padding-bottom: 72px;
}

/* ===== Logo 启动弹窗 ===== */
.idx-v2-logo-splash {
    position: fixed;
    inset: 0;
    z-index: 99999999999999;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.35s ease;
}
.idx-v2-logo-splash.hide {
    opacity: 0;
    pointer-events: none;
}
.idx-v2-logo-splash__box {
    width: 72%;
    max-width: 280px;
    background: #fff;
    border-radius: 18px;
    padding: 28px 24px 22px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    animation: idxV2PopIn 0.45s ease;
}
@keyframes idxV2PopIn {
    0% { transform: scale(0.82); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.idx-v2-logo-splash__box img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 16px;
    margin: 0 auto 14px;
    display: block;
}
.idx-v2-logo-splash__name {
    font-size: 17px;
    font-weight: 600;
    color: var(--idx-v2-text);
    margin-bottom: 6px;
}
.idx-v2-logo-splash__desc {
    font-size: 13px;
    color: var(--idx-v2-sub);
    margin-bottom: 18px;
}
.idx-v2-logo-splash__btn {
    display: inline-block;
    min-width: 120px;
    height: 36px;
    line-height: 36px;
    border-radius: 18px;
    background: var(--idx-v2-orange);
    color: #fff !important;
    font-size: 14px;
}

/* ===== 顶部橙色区 ===== */
.idx-v2-header {
    background: linear-gradient(180deg, var(--idx-v2-orange) 0%, var(--idx-v2-orange-light) 100%);
    padding: 10px 14px 0;
    max-width: 760px;
    margin: 0 auto;
}
.idx-v2-search {
    display: block;
    height: 38px;
    line-height: 38px;
    background: #fff;
    border-radius: 19px;
    padding: 0 16px;
    color: #bbb;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.idx-v2-search .tciconfont {
    font-size: 16px;
    margin-right: 6px;
    vertical-align: -1px;
    color: #ccc;
}

/* Banner 900×383 比例 */
.idx-v2-banner-wrap {
    padding: 12px 0 18px;
}
.idx-v2-banner {
    position: relative;
    width: 100%;
    border-radius: var(--idx-v2-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--idx-v2-card-shadow);
}
.idx-v2-banner::before {
    content: '';
    display: block;
    padding-top: 42.56%; /* 383/900 */
}
.idx-v2-banner .swiper-container,
.idx-v2-banner .swiper-wrapper,
.idx-v2-banner .swiper-slide {
    position: absolute;
    inset: 0;
    height: 100%;
}
.idx-v2-banner .swiper-slide a,
.idx-v2-banner .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.idx-v2-banner .swiper-pagination-bullets {
    bottom: 8px !important;
}
.idx-v2-banner .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.55);
    opacity: 1;
}
.idx-v2-banner .swiper-pagination-bullet-active {
    width: 16px;
    background: #fff !important;
}

/* ===== 主内容白底圆角区 ===== */
.idx-v2-main {
    background: #fff;
    border-radius: 18px 18px 0 0;
    margin-top: -6px;
    padding: 16px 12px 20px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

/* Banner 下 — 区县横向选择 */
.idx-v2-area-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -4px 0 10px;
    padding: 0 2px;
}
.idx-v2-area-bar__loc {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    max-width: 38%;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
}
.idx-v2-area-bar__loc .tciconfont {
    font-size: 15px;
    color: var(--idx-v2-orange);
    margin-right: 4px;
    flex-shrink: 0;
}
.idx-v2-area-bar__label em {
    font-style: normal;
    color: var(--idx-v2-orange);
    font-weight: 500;
}
.idx-v2-area-bar__scroll {
    flex: 1;
    min-width: 0;
    overflow: visible;
}
.idx-v2-area-bar__chips {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.idx-v2-area-chip {
    flex: 1;
    min-width: 0;
    height: 28px;
    line-height: 28px;
    padding: 0 8px;
    border: none;
    border-radius: 14px;
    background: #f5f5f5;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-tap-highlight-color: transparent;
}
.idx-v2-area-chip.active {
    background: var(--idx-v2-orange);
    color: #fff;
    font-weight: 500;
}

/* 四宫格快捷入口 */
.idx-v2-quick {
    display: flex;
    justify-content: space-between;
    padding: 4px 4px 12px;
}
.idx-v2-quick__item {
    flex: 1;
    text-align: center;
    color: var(--idx-v2-text);
}
.idx-v2-quick__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 8px;
    border-radius: 14px;
    background: var(--idx-v2-orange-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.idx-v2-quick__icon .tciconfont {
    font-size: 26px;
    color: var(--idx-v2-orange);
}
.idx-v2-quick__icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.idx-v2-quick__title {
    font-size: 13px;
    line-height: 1.3;
}

/* 到家服务 / 宠物 / 寻人 三卡 */
.idx-v2-service-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.idx-v2-service-card {
    flex: 1;
    background: #fff;
    border-radius: var(--idx-v2-radius);
    box-shadow: var(--idx-v2-card-shadow);
    padding: 10px 8px 6px;
    position: relative;
    overflow: hidden;
    min-height: 76px;
    display: block;
    color: var(--idx-v2-text);
}
.idx-v2-service-card__title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
}
.idx-v2-service-card__sub {
    font-size: 10px;
    color: var(--idx-v2-sub);
    white-space: nowrap;
}
.idx-v2-service-card__img {
    position: absolute;
    right: 2px;
    bottom: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--idx-v2-orange-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.idx-v2-service-card__img img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}
.idx-v2-service-card__img .tciconfont {
    font-size: 26px;
    color: var(--idx-v2-orange);
    opacity: 0.85;
}

/* 浏览/发布/入驻/用户统计 */
.idx-v2-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: var(--idx-v2-radius);
    box-shadow: var(--idx-v2-card-shadow);
    padding: 10px 12px;
    margin-bottom: 10px;
    gap: 8px;
}
.idx-v2-stats__main {
    display: flex;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}
.idx-v2-stats__icon {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--idx-v2-orange);
    margin-right: 6px;
    margin-top: 2px;
}
.idx-v2-stats__text {
    font-size: 12px;
    line-height: 1.6;
    color: #464443;
    word-break: break-all;
}
.idx-v2-stats__text em {
    font-style: normal;
    color: #ff4700;
    font-weight: 600;
}
.idx-v2-stats__help {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--idx-v2-sub);
    white-space: nowrap;
}

/* 信息流区（保留功能） */
.idx-v2-feed {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.idx-v2-feed__tabs .index-newmenus__list {
    border-bottom: 1px solid #f0f0f0;
}
.idx-v2-feed .tc-sec {
    background: transparent;
}
.idx-v2-feed .sr-v2-feed-list {
    padding: 0 12px 16px;
    max-width: 760px;
    margin: 0 auto;
    background: transparent;
}

/* ===== 三栏底部导航 ===== */
.footer-v2 {
    height: 62px;
}
.footer-v2 .footer-v2__box {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 760px;
    margin: 0 auto;
    height: 56px;
    background: #fff;
    box-shadow: 0 -1px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: flex-end;
    z-index: 100;
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
}
.footer-v2 .footer-v2__item {
    flex: 1;
    text-align: center;
    padding-bottom: 6px;
    color: #999;
    font-size: 11px;
}
.footer-v2 .footer-v2__item.on {
    color: var(--idx-v2-orange);
}
.footer-v2 .footer-v2__item .tciconfont {
    display: block;
    font-size: 22px;
    line-height: 28px;
}
.footer-v2 .footer-v2__fabu {
    position: relative;
    padding-bottom: 4px;
}
.footer-v2 .footer-v2__fabu-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--idx-v2-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -22px auto 2px;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.35);
}
.footer-v2 .footer-v2__fabu-btn .tciconfont {
    font-size: 28px;
    line-height: 1;
    color: #fff;
}

@media (min-width: 760px) {
    .idx-v2-header,
    .idx-v2-main {
        border-radius: 0;
    }
}
