/* Homepage brand redesign — loaded only on index */
.page-home {
    background:
        radial-gradient(1200px 480px at 10% -10%, rgba(42, 143, 134, 0.12), transparent 60%),
        radial-gradient(900px 420px at 90% 0%, rgba(20, 61, 58, 0.08), transparent 55%),
        var(--brand-bg);
}

.page-home .banner {
    position: relative;
    height: min(72vh, 640px);
    min-height: 480px;
    overflow: hidden;
}

.page-home .slidebanner,
.page-home .slidebanner .bd,
.page-home .slidebanner .bd ul,
.page-home .slidebanner .bd li,
.page-home .slidebanner .bd a {
    height: 100%;
    width: 100%;
}

.page-home .slidebanner {
    position: absolute;
    inset: 0;
}

.page-home .slidebanner .bd a {
    display: block;
    background-size: cover !important;
    background-position: center center !important;
}

.page-home .slidebanner .hd {
    position: absolute;
    bottom: 28px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 5;
}

.page-home .slidebanner .hd li {
    display: inline-block;
    width: 28px;
    height: 3px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    border-radius: 0;
    text-indent: -9999px;
    cursor: pointer;
    transition: background 0.25s ease, width 0.25s ease;
}

.page-home .slidebanner .hd li.on {
    width: 44px;
    background: #fff;
}

.page-home .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        180deg,
        rgba(12, 28, 27, 0.4) 0%,
        rgba(12, 28, 27, 0.28) 50%,
        rgba(12, 28, 27, 0.45) 100%
    );
    pointer-events: none;
}

/* 覆盖 index.css: .banner .nb { position:absolute; top:0 } */
.page-home .banner .hero-overlay .nb {
    position: static !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    width: 100%;
    max-width: none;
    height: 100%;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-home .hero-copy {
    max-width: 760px;
    width: 100%;
    padding: 0 24px;
    color: #fff;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: heroIn 0.9s ease 0.15s forwards;
}

.page-home .hero-brand {
    font-family: var(--brand-serif);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.page-home .hero-lead {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    max-width: 28em;
    margin: 0 auto 28px;
}

.page-home .hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-home .hero-cta {
    display: inline-block;
    padding: 12px 26px;
    font-size: 15px;
    color: #fff;
    background: var(--brand-accent);
    border: 1px solid transparent;
    transition: background 0.25s ease, transform 0.25s ease;
}

.page-home .hero-cta:hover {
    background: var(--brand-accent-hover);
    color: #fff;
    transform: translateY(-2px);
}

.page-home .hero-cta.is-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
}

.page-home .hero-cta.is-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

@keyframes heroIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-home .home-cats {
    margin-top: -36px;
    position: relative;
    z-index: 6;
    margin-bottom: 36px;
}

.page-home .home-cats-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid #dde6e4;
    scrollbar-width: thin;
}

.page-home .home-cats-track a {
    flex: 0 0 auto;
    padding: 10px 18px;
    font-size: 15px;
    color: var(--brand-ink);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.page-home .home-cats-track a:hover {
    color: var(--brand-accent);
    border-bottom-color: var(--brand-accent);
    background: #f3faf9;
}

.page-home .content {
    background: transparent;
    padding-bottom: 40px;
}

.page-home .cont-item {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 0 40px;
    overflow: visible;
}

.page-home .cont-item a {
    float: none;
    margin: 0;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: transparent;
    display: block;
}

.page-home .cont-item a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.page-home .cont-item a:hover img {
    transform: scale(1.04);
}

.page-home .floor-fontainer {
    position: relative;
}

.page-home .leftgood-bar {
    position: fixed;
    top: 40%;
    z-index: 80;
    width: 44px;
    background: rgba(20, 61, 58, 0.92);
    display: none;
}

.page-home .leftgood-bar .lgb a {
    display: block;
    padding: 10px 6px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    line-height: 1.3;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home .leftgood-bar .lgb a span {
    float: none !important;
    display: block;
}

.page-home .leftgood-bar .onlgb a,
.page-home .leftgood-bar .lgb:hover a {
    color: #fff;
    background: var(--brand-accent);
}

.page-home .floor-box {
    margin-bottom: 48px;
}

.page-home .floor-header {
    height: auto;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #d7e0de;
    padding-bottom: 12px;
}

.page-home .floor-header-f1,
.page-home .floor-header-f2,
.page-home .floor-header-f3,
.page-home .floor-header-f4,
.page-home .floor-header-f5,
.page-home .floor-header-f6,
.page-home .floor-header-f7,
.page-home .floor-header-f8,
.page-home .floor-header-f9,
.page-home .floor-header-f10 {
    float: none;
    width: auto;
    margin: 0;
    height: auto;
}

.page-home .floor-right-title {
    font-family: var(--brand-serif);
    font-size: 28px;
    color: var(--brand-ink);
    font-weight: 700;
}

.page-home .floor-header .tab {
    float: none;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.page-home .floor-header .tab li {
    float: none;
}

.page-home .floor-header .tab a {
    padding: 6px 10px;
    color: var(--brand-muted);
    font-size: 14px;
}

.page-home .floor-header .tab a:hover {
    color: var(--brand-accent);
}

.page-home .floor-right {
    display: grid !important;
    grid-template-columns: 280px repeat(4, 1fr);
    gap: 0;
    background: #fff;
    border: 1px solid #e2eae8;
    overflow: hidden;
}

.page-home .floor-right-ads {
    grid-row: 1 / span 2;
    margin: 0;
    width: 100%;
    height: 100%;
    min-height: 560px;
}

.page-home .floor-right-ads,
.page-home .wst-floor-slide-1,
.page-home .wst-floor-slide-items,
.page-home .wst-floor-slide-items li,
.page-home .wst-floor-slide-items a {
    width: 100%;
    height: 100%;
}

.page-home .wst-floor-slide-items img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-home .goods-list {
    width: auto;
    float: none;
    border: none;
}

.page-home .goods-list .goods {
    width: 100%;
    float: none;
    height: auto;
    min-height: 280px;
    border: none;
    border-left: 1px solid #eef2f1;
    border-bottom: 1px solid #eef2f1;
    padding: 18px 16px 20px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.page-home .goods-list .goods:hover {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #eef2f1;
    box-shadow: none;
    background: #f7fbfa;
    transform: translateY(-4px);
}

.page-home .goods-list .goods:hover .img {
    transform: none;
}

.page-home .goods-list .goods .img a img {
    width: 160px;
    height: 160px;
    padding: 8px 0 12px;
    transition: transform 0.35s ease;
}

.page-home .goods-list .goods:hover .img a img {
    transform: translateY(-6px);
}

.page-home .goods-list .goods .p-name {
    width: 100%;
    text-align: left;
    height: 44px;
}

.page-home .goods-list .goods .p-name a {
    font-size: 14px;
    color: var(--brand-text);
}

.page-home .goods-list .goods .p-price {
    text-align: left;
    color: var(--brand-price);
    font-size: 18px;
    font-weight: 600;
    margin-top: 8px;
}

.page-home .goods-list .goods .img .tag {
    border-radius: 0;
    left: 8px;
}

.page-home .goods-list .goods .img .tag-orange {
    background: #c87820;
}

.page-home .goods-list .goods .img .tag-blue {
    background: var(--brand-accent);
}

.page-home .wst-clear {
    display: none;
}

.page-home .guesslike {
    margin-top: 20px;
    padding: 36px 0 10px;
    background: transparent;
}

.page-home .guesslike .title-ab h4 {
    font-size: 28px;
}

.page-home .yourlike.indyourlike {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.page-home .yourlike.indyourlike li {
    float: none;
    width: auto;
    margin: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid #e2eae8;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.page-home .yourlike.indyourlike li:hover {
    transform: translateY(-4px);
    border-color: var(--brand-accent);
}

.page-home .yourlike.indyourlike .picbox {
    display: block;
    height: 180px;
    overflow: hidden;
}

.page-home .yourlike.indyourlike .picbox img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.page-home .yourlike.indyourlike .elli {
    margin: 12px 0 8px;
    height: 40px;
    overflow: hidden;
}

.page-home .yourlike.indyourlike .price {
    color: var(--brand-price);
    font-size: 16px;
    font-weight: 600;
}

.page-home .yourlike.indyourlike li > span {
    display: block;
    margin-top: 6px;
    color: var(--brand-muted);
    font-size: 12px;
}

@media (max-width: 1240px) {
    .page-home .floor-right {
        grid-template-columns: 240px repeat(4, 1fr);
    }
    .page-home .cont-item {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-home .yourlike.indyourlike {
        grid-template-columns: repeat(4, 1fr);
    }
    .page-home .hero-brand {
        font-size: 40px;
    }
}
