/* ============================================================
   首页新布局 · 白底蓝调 · 1:1 复刻 sq.oo7.co 比例
   仅在 index.css 之后加载，负责「新结构」与「去壁纸」。
   ============================================================ */

/* ---------- 去壁纸：白底 ---------- */
body.uc-body {
    background-image: none !important;
    background: #f2f3f5 !important;
    color: var(--uc-ink);
}
body.uc-body::before { display: none !important; }

.uc-topbar,
#pjax-container,
body.uc-body > footer,
.uc-main { position: relative; z-index: 1; }

/* 全站统一内容宽度 = 1200（目标站内宽约 1300，等比取常用值） */
.top-strip__inner,
.uc-topbar__inner,
.uc-main .container,
.site-footer .container { max-width: 1200px !important; }

/* ---------- 顶栏：双行 ---------- */
.top-strip {
    background: #333333;
    color: #c9c9c9;
    font-size: 12px;
}
.top-strip__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 36px;
    padding: 0 16px;
}
.top-strip__home { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.top-strip__home i { font-size: 14px; }
.top-strip__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.top-strip__right a { color: #c9c9c9; display: inline-flex; align-items: center; gap: 5px; transition: color .15s; }
.top-strip__right a:hover { color: #fff; }
.top-strip__right i { font-size: 13px; }
.top-strip__sep { color: #5a5a5a; }

/* 主导航：白色条形，吸顶 */
.uc-head {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(31, 45, 70, .08);
}
.uc-topbar { position: static; padding: 12px 16px; }
.uc-topbar__inner { margin: 0 auto; }
.shop-nav {
    height: 64px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid var(--glass-border);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 0 14px;
}
.shop-brand__name { color: var(--uc-ink); }
.shop-nav__item.active { background: var(--md-primary); }
.shop-nav__item:hover { color: var(--md-primary); background: rgba(var(--md-primary-rgb), .08); }

.shop-search { flex: 1 1 auto; }
.shop-search__box {
    max-width: 320px;
    height: 38px;
    border-radius: 999px;
    background: #f1f3f7;
    border: 1px solid var(--glass-border);
}
.shop-search__box:focus-within { border-color: var(--md-primary); box-shadow: 0 0 0 3px rgba(var(--md-primary-rgb), .16); }
.item-search-btn {
    width: 30px; height: 30px; flex: 0 0 auto;
    border: 0; border-radius: 50%;
    background: var(--md-primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: filter .15s, transform .1s;
}
.item-search-btn:hover { filter: brightness(1.06); }
.item-search-btn:active { transform: scale(.94); }
.item-search-btn i { font-size: 14px; }

.shop-btn--primary { background: var(--md-primary); border-color: var(--md-primary); color: #fff; }
.shop-btn--primary:hover { filter: brightness(1.05); }
.shop-btn--ghost { border: 1px solid var(--glass-border); color: var(--uc-ink-med); background: #fff; }

/* ---------- 主区 ---------- */
.uc-main { max-width: 100% !important; margin: 0 !important; padding: 16px 0 40px !important; }
.home-hero {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 16px;
    align-items: stretch;
    min-height: 392px;
    margin-bottom: 16px;
}
.home-col { min-width: 0; }

/* 左：蓝色分类面板（白字，1:1 目标站配色面板） */
.side-card {
    background: linear-gradient(165deg, #2b6cff 0%, #1b4fd8 100%);
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(43, 108, 255, .22);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.side-card__head {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 16px;
    font-weight: 700; font-size: 15px; color: #fff;
    background: transparent;
}
.side-card__head i { font-size: 16px; }
.cate-list { padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }
.cate-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 10px;
    color: rgba(255,255,255,.85); font-size: 14px; font-weight: 500;
    transition: background .15s, color .15s;
}
.cate-item:hover { background: rgba(255,255,255,.14); color: #fff; }
.cate-item.is-primary { background: rgba(255,255,255,.18); color: #fff; font-weight: 700; }
.cate-item.is-disabled { opacity: .45; pointer-events: none; }
.cate-item__icon { width: 22px; height: 22px; border-radius: 7px; flex: 0 0 auto; background-size: cover !important; }
.cate-item__name { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cate-item__count { font-size: 12px; color: #fff; background: rgba(255,255,255,.18); border-radius: 999px; padding: 1px 8px; }
.cate-all {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px; font-size: 13px; color: #fff; font-weight: 600;
    border-top: 1px solid rgba(255,255,255,.18); transition: background .15s;
}
.cate-all:hover { background: rgba(255,255,255,.1); }

/* 中：Banner */
.hero-banner { height: 100%; }
.hero-banner__slide {
    position: relative;
    height: 100%;
    min-height: 360px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #2b6cff 0%, #1b4fd8 60%, #143bb0 100%);
    color: #fff;
    display: flex; align-items: center;
    box-shadow: var(--glass-shadow);
}
.hero-banner__text { position: relative; z-index: 2; padding: 28px 32px; max-width: 70%; }
.hero-banner__eyebrow { font-size: 12.5px; letter-spacing: .5px; opacity: .85; margin-bottom: 8px; }
.hero-banner__text h2 { margin: 0 0 10px; font-size: 26px; font-weight: 800; }
.hero-banner__text p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.7; opacity: .9;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-banner__btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; color: #1b4fd8; font-weight: 700; font-size: 14px;
    padding: 9px 18px; border-radius: 999px; transition: transform .12s, box-shadow .2s;
}
.hero-banner__btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.hero-banner__deco {
    position: absolute; right: -60px; top: -60px; z-index: 1;
    width: 240px; height: 240px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), rgba(255,255,255,0) 70%);
}
.hero-banner__deco::after {
    content: ""; position: absolute; right: 80px; bottom: -120px;
    width: 180px; height: 180px; border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.18), rgba(255,255,255,0) 70%);
}

/* 右：登录面板 + 服务承诺 */
.user-panel {
    background: #fff; border: 1px solid var(--glass-border); border-radius: 14px;
    padding: 18px; box-shadow: var(--glass-shadow); margin-bottom: 14px;
}
.user-panel__title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--uc-ink); margin-bottom: 14px; }
.user-panel__title i { color: var(--md-primary); }
.user-panel__hi { font-size: 15px; font-weight: 700; color: var(--uc-ink); margin-bottom: 10px; }
.user-panel__row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--uc-ink-med); margin-bottom: 14px; }
.user-panel__row b { color: var(--md-primary); font-size: 15px; }
.user-panel__btn {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    width: 100%; height: 42px; border-radius: 10px; font-size: 14px; font-weight: 600;
    margin-top: 10px; cursor: pointer; transition: filter .15s, transform .1s, background .15s, color .15s;
}
.user-panel__btn--primary { background: var(--md-primary); color: #fff; border: 1px solid var(--md-primary); }
.user-panel__btn--primary:hover { filter: brightness(1.05); }
.user-panel__btn--ghost { background: #fff; color: var(--md-primary); border: 1px solid rgba(var(--md-primary-rgb), .4); }
.user-panel__btn--ghost:hover { background: rgba(var(--md-primary-rgb), .08); }
.user-panel__btn:active { transform: translateY(1px); }

.service-promise {
    background: #fff; border: 1px solid var(--glass-border); border-radius: 14px;
    padding: 14px; box-shadow: var(--glass-shadow);
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.sp-item { display: flex; align-items: center; gap: 10px; }
.sp-item__ico {
    width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(var(--md-primary-rgb), .1); color: var(--md-primary); font-size: 17px;
}
.sp-item div { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sp-item b { font-size: 13px; color: var(--uc-ink); }
.sp-item span { font-size: 11.5px; color: var(--uc-ink-dis); }

/* 公告条 */
.notice-bar {
    display: flex; align-items: center; gap: 12px;
    background: rgba(var(--md-primary-rgb), .07);
    border: 1px solid rgba(var(--md-primary-rgb), .18);
    border-radius: 12px; padding: 10px 16px; margin-bottom: 16px;
}
.notice-bar__tag {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
    background: var(--md-primary); color: #fff; font-size: 12.5px; font-weight: 700;
    padding: 4px 12px; border-radius: 999px;
}
.notice-bar__tag i { font-size: 13px; }
.notice-bar__text {
    flex: 1 1 auto; font-size: 13px; color: var(--uc-ink-med);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 商品分区 */
.prod-section { margin-bottom: 22px; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.section-head__title { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; color: var(--uc-ink); }
.section-head--hot .section-head__title { color: #e8651e; }
.section-head--hot .section-head__title i { color: #e8651e; }
.section-head--fine .section-head__title { position: relative; padding-left: 14px; }
.section-head--fine .section-head__title::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 5px; height: 18px; border-radius: 3px; background: var(--md-primary);
}
.section-head__sub { font-size: 12.5px; color: var(--uc-ink-dis); }

/* 爆款：横向滚动（竖卡） */
.hot-list { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; }
.hot-list::-webkit-scrollbar { height: 6px; }
.hot-list::-webkit-scrollbar-thumb { background: #d4dae6; border-radius: 999px; }
.hot-list .item-card-cell { flex: 0 0 180px; scroll-snap-align: start; }
.hot-list .acg-card { box-shadow: var(--glass-shadow); }
.hot-list .item-message { flex: 1 1 100%; color: var(--uc-ink-dis); font-size: 14px; padding: 20px 4px; }

/* 精品：网格（item-list 已在 index.css 中定义 grid） */
.chip-list--inline { margin: 6px 0 14px; flex-wrap: wrap; }
/* 精品推荐卡片：紧凑横卡（1:1 目标站 217×88 风格），仅作用于首页精品区 */
.fine-section .acg-card { flex-direction: row; align-items: stretch; }
.fine-section .acg-thumb { width: 96px; aspect-ratio: 1 / 1; flex: 0 0 96px; border-radius: 0; }
.fine-section .acg-body { padding: 8px 10px; gap: 2px; justify-content: center; }
.fine-section .tags { display: none; }
.fine-section .stat-bottom { display: none; }
.fine-section .goods-title { font-size: 13px; -webkit-line-clamp: 1; }
.fine-section .stat-row { margin-top: 2px; }
.fine-section .price { font-size: 15px; }

/* 底提示条 */
.bottom-tip {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: #fff; border: 1px solid var(--glass-border); border-radius: 12px;
    padding: 14px 18px; font-size: 13.5px; color: var(--uc-ink-med);
}
.bottom-tip a { display: inline-flex; align-items: center; gap: 6px; color: var(--uc-ink-med); }
.bottom-tip a:hover { color: var(--md-primary); }
.bottom-tip__more { color: var(--md-primary) !important; font-weight: 600; }

/* ---------- 深色页脚 ---------- */
.site-footer { background: #292929; color: #808080; margin-top: 30px; padding: 26px 0 0; font-size: 12px; }
.site-footer__grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.sp-block { display: flex; align-items: center; gap: 12px; padding: 6px 14px; }
.sp-block__ico {
    width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(108,168,255,.16); color: #6ea8ff; font-size: 19px;
}
.sp-block div { display: flex; flex-direction: column; line-height: 1.3; }
.sp-block b { color: #fff; font-size: 14px; }
.sp-block span { font-size: 12px; color: #9aa0ab; }
.site-footer__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; flex-wrap: wrap; }
.site-footer__brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
.site-footer__brand img { width: 26px; height: 26px; border-radius: 7px; }
.site-footer__links { display: flex; gap: 18px; }
.site-footer__links a { color: #9aa0ab; font-size: 13px; }
.site-footer__links a:hover { color: #6ea8ff; }
.icp-footer { background: #1a1a1a; color: #6b7280; text-align: center; font-size: 12px; padding: 14px 16px; }
.icp-footer a { color: #6b7280; }

/* ---------- 右侧浮动服务（1:1 目标站右侧悬浮） ---------- */
.float-services {
    position: fixed; right: 14px; top: 50%; transform: translateY(-50%);
    z-index: 300; display: flex; flex-direction: column; gap: 10px;
}
.float-svc {
    width: 56px; height: 56px; border-radius: 14px;
    background: #fff; color: #41455d; box-shadow: 0 6px 18px rgba(0,0,0,.14);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    transition: background .15s, color .15s, transform .12s;
}
.float-svc i { font-size: 20px; }
.float-svc span { font-size: 10px; line-height: 1; }
.float-svc:hover { background: var(--md-primary); color: #fff; transform: translateY(-2px); }

/* ---------- 顶部滚动公告（同步后台「公告」） ---------- */
.announce-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 38px;
    padding: 0 16px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(43, 108, 255, .08), rgba(43, 108, 255, .03));
    border-bottom: 1px solid rgba(43, 108, 255, .12);
}
.announce-bar__tag {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--md-primary);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 999px;
}
.announce-bar__tag i { font-size: 13px; }
.announce-bar__viewport {
    flex: 1 1 auto;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.announce-bar__track {
    display: inline-flex;
    white-space: nowrap;
    will-change: transform;
    animation: announce-scroll 22s linear infinite;
}
.announce-bar__track:hover { animation-play-state: paused; }
.announce-bar__item {
    padding-right: 80px;
    font-size: 13px;
    color: var(--uc-ink-med);
}
.announce-bar__item a { color: var(--md-primary); }
@keyframes announce-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .announce-bar__track { animation: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
    .home-hero { grid-template-columns: 210px 1fr 260px; }
}
@media (max-width: 992px) {
    .home-hero { grid-template-columns: 1fr; min-height: 0; }
    .home-col--center { order: -1; }
    .hero-banner__slide { min-height: 200px; }
    .hero-banner__text { max-width: 100%; }
    .side-card { max-height: none; }
    .cate-list { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; }
    .cate-item { white-space: nowrap; }
    .cate-item__count { display: none; }
    .service-promise { grid-template-columns: 1fr 1fr; }
    .float-services { display: none; }
}
@media (max-width: 768px) {
    .top-strip__inner { gap: 10px; font-size: 12px; overflow-x: auto; }
    .top-strip__right { gap: 12px; }
    .uc-topbar { padding: 8px 12px; }
    .shop-nav { height: 54px; padding: 0 8px; }
    .shop-search__box { max-width: none; }
    .shop-brand__name { max-width: 120px; }
    .shop-nav__list { display: none; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .hot-list .item-card-cell { flex: 0 0 160px; }
    .fine-section .acg-thumb { width: 72px; flex-basis: 72px; }
    .bottom-tip { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 480px) {
    .site-footer__grid { grid-template-columns: 1fr; }
}
