/* templet4 首页 — 原创布局 */

.t4-home { background: var(--t4-canvas, #f7f7f7); }

.t4-hero { background: var(--t4-cream, #f3eee8); }
.t4-hero-swiper,
.t4-hero-slide {
    min-height: 420px;
}
.t4-hero-slide {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.t4-hero-a {
    background:
        radial-gradient(circle at 78% 45%, rgba(255,255,255,.55), transparent 42%),
        linear-gradient(110deg, #f3eee8 0%, #ebe4db 55%, #e2d5c8 100%);
}
.t4-hero-b {
    background:
        radial-gradient(circle at 75% 40%, rgba(255,255,255,.4), transparent 45%),
        linear-gradient(120deg, #2c2c2c 0%, #4a3f38 50%, #ff5a1f 120%);
}
.t4-hero-b .t4-hero-copy,
.t4-hero-b .t4-hero-season { color: #fff; }
.t4-hero-c {
    background:
        radial-gradient(circle at 70% 50%, rgba(255,255,255,.5), transparent 40%),
        linear-gradient(115deg, #e8f0f4 0%, #d5e4ec 60%, #c7d8e4 100%);
}
.t4-hero-copy { position: relative; z-index: 1; max-width: 520px; padding: 48px 0; }
.t4-hero-season {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 14px;
}
.t4-hero-copy h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 28px;
    color: inherit;
}
.t4-hero-swiper .swiper-pagination-bullet { background: #333; opacity: .35; }
.t4-hero-swiper .swiper-pagination-bullet-active { opacity: 1; background: var(--t4-accent, #ff5a1f); }
.t4-hero-swiper .swiper-button-prev,
.t4-hero-swiper .swiper-button-next {
    color: #222;
    --swiper-navigation-size: 22px;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,.75);
    border-radius: 50%;
}
.t4-hero-swiper .swiper-button-prev:after,
.t4-hero-swiper .swiper-button-next:after { font-size: 14px; font-weight: 700; }

.t4-promos { padding: 28px 0 8px; }
.t4-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.t4-promo-card {
    min-height: 180px;
    padding: 28px 24px;
    background: #eee;
    color: inherit;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: transform .2s;
}
.t4-promo-card:hover {
    transform: translateY(-3px);
    color: inherit;
}
.t4-promo-1 { background: linear-gradient(135deg, #f0f0f0, #e4e4e4); }
.t4-promo-2 { background: linear-gradient(135deg, #efe8e0, #e3d6c8); }
.t4-promo-3 { background: linear-gradient(135deg, #e8eef2, #d5e0e8); }
.t4-promo-text span {
    display: block;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
}
.t4-promo-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #1c1c1c;
}
.t4-promo-text em {
    font-style: normal;
    display: inline-block;
    background: var(--t4-accent, #ff5a1f);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 10px 16px;
    text-transform: uppercase;
}

.t4-block { padding: 36px 0; }
.t4-block-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.t4-block-head h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}
.t4-block-head p { color: #888; font-size: 14px; margin: 0; }
.t4-more {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}
.t4-more:hover { color: var(--t4-accent, #ff5a1f); }

.t4-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.t4-product {
    background: #fff;
    transition: box-shadow .2s;
}
.t4-product:hover { box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.t4-product-media {
    display: block;
    aspect-ratio: 1;
    background: #f4f4f4;
    overflow: hidden;
}
.t4-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.t4-product:hover .t4-product-media img { transform: scale(1.04); }
.t4-noimg {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 13px;
}
.t4-product-body { padding: 14px; }
.t4-product-body h3 {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 12px;
    height: 40px;
    overflow: hidden;
    line-height: 1.45;
}
.t4-product-body h3 a { color: #222; }
.t4-product-body h3 a:hover { color: var(--t4-accent, #ff5a1f); }
.t4-product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.t4-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.t4-price strong {
    color: var(--t4-accent, #ff5a1f);
    font-size: 16px;
}
.t4-price del { color: #999; font-size: 12px; }
.t4-add {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #fff;
    background: var(--t4-ink, #1c1c1c);
    padding: 8px 12px;
    text-transform: uppercase;
}
.t4-add:hover { background: var(--t4-accent, #ff5a1f); color: #fff; }

.t4-banner-strip {
    padding: 10px 0 36px;
}
.t4-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 48px 40px;
    background:
        linear-gradient(105deg, rgba(28,28,28,.82), rgba(28,28,28,.45)),
        linear-gradient(120deg, #3d342e, #7a5340 50%, #ff5a1f);
    color: #fff;
}
.t4-banner-inner p {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: 8px;
}
.t4-banner-inner h2 {
    font-size: 32px;
    margin-bottom: 8px;
}
.t4-banner-inner span { opacity: .9; font-size: 14px; }

/* 共用版块在 templet4 下的微调 */
.template-templet4 .home-section {
    background: transparent;
    padding: 28px 0;
}
.template-templet4 .home-flash-section,
.template-templet4 .home-group-section {
    background: transparent;
}
.template-templet4 .title-badge {
    background: var(--t4-accent, #ff5a1f);
    border-radius: 0;
}
.template-templet4 .home-product-row {
    gap: 16px;
}
.template-templet4 .home-product-card {
    border-radius: 0;
    box-shadow: none;
    border: 0;
}
.template-templet4 .home-more-link:hover {
    color: var(--t4-accent, #ff5a1f);
}

@media (max-width: 960px) {
    .t4-promo-grid { grid-template-columns: 1fr; }
    .t4-product-grid { grid-template-columns: repeat(2, 1fr); }
    .t4-hero-copy h1 { font-size: 32px; }
    .t4-banner-inner { flex-direction: column; align-items: flex-start; padding: 36px 24px; }
}
@media (max-width: 560px) {
    .t4-hero-swiper,
    .t4-hero-slide { min-height: 320px; }
    .t4-hero-copy h1 { font-size: 26px; }
    .t4-product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .template-templet4 .home-product-row { grid-template-columns: repeat(2, 1fr); }
}
