﻿/* =========================================================
   HOME - APPLE-LIKE MINIMAL WHITE
   ========================================================= */



/* =========================================================
   PAGE RHYTHM - FULL WIDTH VERSION
   ========================================================= */

/* =========================================================
HOME HERO + PROMO（修正版）
解决：

1. 顶部不再挡住 promo
2. promo 恢复显示
3. 比例改成 1920 / 1000
4. 文案放左下角
   ========================================================= */

/* ===== 首屏 HERO ===== */
.home-hero {
    width: 100%;
    margin: 10px auto 18px;
    position: relative;
}

/* 让 hero 不受内容容器限制 */
.hero-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* 下方模块宽度 */
.home-products,
.home-forum {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 28px;
    padding-right: 28px;
}

@media (max-width: 768px) {
    .home-products,
    .home-forum {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ===== PROMO ===== */

.promo-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 1000; /* ✅ 关键：比例放在真正轮播容器 */
    overflow: hidden;
    border-radius: 24px;
    background: #111;
}

.promo-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.promo-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.01);
    transition: opacity .45s ease, transform .45s ease;
}

    .promo-slide.is-active {
        opacity: 1;
        transform: scale(1);
    }

    .promo-slide .media,
    .promo-slide picture {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

        .promo-media,
        .promo-slide .media img,
        .promo-slide .media video,
        .promo-slide picture img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

/* ===== 文案放左下角 ===== */
.promo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background: linear-gradient( 180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.18) 58%, rgba(0,0,0,.52) 100% );
    pointer-events: none;
}

.promo-card {
    max-width: 560px;
    padding: 0 0 42px 42px;
    color: #fff;
    pointer-events: auto;
}

.promo-title {
    margin: 0;
    font-size: clamp(24px, 2.4vw, 40px);
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}

.promo-sub {
    margin-top: 10px;
    font-size: clamp(13px, 0.95vw, 16px);
    line-height: 1.55;
    color: rgba(255,255,255,.82);
    max-width: 30ch;
}

.promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
    transition: all .16s ease;
}

    .promo-btn:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,.22);
        box-shadow: 0 10px 22px rgba(0,0,0,.18);
    }

/* ===== dots ===== */
.promo-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(255,255,255,.32);
    transition: transform .16s ease, background .16s ease;
}

    .dot.is-active {
        background: rgba(255,255,255,.92);
        transform: scale(1.15);
    }

/* ===== 空状态 ===== */
.promo-empty {
    border-radius: 24px;
    border: 1px solid var(--border);
    background: var(--card);
    padding: 80px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

    .promo-empty .promo-card {
        max-width: 720px;
        margin: 0 auto;
        padding: 0;
        color: var(--text);
    }

/* ===== 移动端 ===== */
@media (max-width: 980px) {
    .home-hero {
        margin-top: 76px;
        margin-bottom: 14px;
    }


    .promo-carousel {
        aspect-ratio: 4 / 5;
        border-radius: 20px;
    }

    .promo-overlay {
        background: linear-gradient( 180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.70) 100% );
    }

    .promo-card {
        max-width: none;
        padding: 0 18px 22px;
    }

    .promo-title {
        font-size: clamp(24px, 7vw, 34px);
    }

    .promo-sub {
        font-size: 14px;
        max-width: none;
    }

  
}


/* 按钮 */
.promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
    transition: all .16s ease;
}

    .promo-btn:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,.22);
        box-shadow: 0 10px 22px rgba(0,0,0,.18);
    }

/* dots */
.promo-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,.32);
}

    .dot.is-active {
        background: rgba(255,255,255,.92);
        transform: scale(1.15);
    }

/* ===== 移动端 ===== */
@media (max-width: 980px) {
    .home-hero {
        margin-top: 76px;
        aspect-ratio: 4 / 5; /* ✅ 手机更高 */
        border-radius: 20px;
    }

    .promo-carousel {
        border-radius: 20px;
    }

    .promo-overlay {
        background: linear-gradient( 180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.70) 100% );
    }

    .promo-card {
        padding: 0 18px 22px;
    }

    .promo-title {
        font-size: clamp(24px, 7vw, 34px);
    }

    .promo-sub {
        font-size: 14px;
        max-width: none;
    }

}


/* =========================================================
   HOME PRODUCTS - Apple Style Showcase Strip
   ========================================================= */

.home-products {
    margin-top: 44px;
    max-width: 100%;
    padding: 0 0 0 24px;
}

.hp-section {
    margin-bottom: 44px;
}

.hp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 auto 18px;
    max-width: 1440px;
    padding-right: 24px;
}

.hp-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #111;
}

.hp-more {
    color: rgba(17,17,17,.56);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

    .hp-more:hover {
        color: #111;
        text-decoration: underline;
    }

.hp-slider-wrapper {
    position: relative;
    width: 100%;
}

.hp-slider {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 72px 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .hp-slider::-webkit-scrollbar {
        display: none;
    }

/* 关键：做成 Apple 风格展示卡 */
.hp-card {
    flex: 0 0 320px;
    width: 320px;
    min-height: 460px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.05);
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.035);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .hp-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 24px rgba(0,0,0,.06);
        border-color: rgba(0,0,0,.08);
    }

.hp-image-wrap {
    width: 100%;
    height: 300px;
    background: linear-gradient(180deg, #fafafa, #f4f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .hp-image-wrap img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        padding: 26px;
    }

.hp-name {
    padding: 16px 18px 6px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    color: #111;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-price {
    padding: 0 18px 20px;
    margin-top: auto;
    font-size: 15px;
    line-height: 1.1;
    font-weight: 600;
    color: rgba(17,17,17,.72);
}

/* 左右悬浮箭头 */
.hp-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 999px;
    background: rgba(240,240,244,.92);
    color: rgba(17,17,17,.82);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    transition: transform .16s ease, background .16s ease, color .16s ease;
}

    .hp-btn:hover {
        background: #ffffff;
        color: #111;
        transform: translateY(-50%) scale(1.04);
    }

.hp-btn-left {
    left: 10px;
}

.hp-btn-right {
    right: 16px;
}

/* 平板 */
@media (max-width: 768px) {
    .hp-card {
        flex: 0 0 220px;
        width: 220px;
        min-height: 340px;
        border-radius: 20px;
    }

    .hp-image-wrap {
        height: 220px;
    }

        .hp-image-wrap img {
            padding: 16px;
        }

    .hp-name {
        padding: 12px 14px 4px;
        font-size: 13px;
        min-height: 40px;
    }

    .hp-price {
        padding: 0 14px 16px;
        font-size: 13px;
    }
}

/* 手机 */
@media (max-width: 768px) {
    .home-products {
        margin-top: 40px;
        padding-left: 16px;
    }

    .hp-header {
        padding-right: 16px;
        margin-bottom: 16px;
    }

    .hp-title {
        font-size: 28px;
    }

    .hp-slider {
        gap: 12px;
        padding-right: 16px;
    }

    .hp-card {
        flex: 0 0 220px;
        width: 220px;
        min-height: 360px;
        border-radius: 22px;
    }

    .hp-image-wrap {
        height: 220px;
    }

        .hp-image-wrap img {
            padding: 16px;
        }

    .hp-name {
        padding: 14px 14px 6px;
        font-size: 14px;
        min-height: 44px;
    }

    .hp-price {
        padding: 0 14px 16px;
        font-size: 14px;
    }

    .hp-btn {
        display: none;
    }
}

/* =========================================================
   FORUM
   ========================================================= */

.home-forum {
    margin-top: 48px;
    margin-bottom: 20px;
    max-width: 1440px;
    padding: 0 28px;
}

.hf-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
}

.hf-card {
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,.06);
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.035);
    padding: 22px;
}

.hf-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #111;
}

.hf-sub {
    margin-top: 6px;
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(17,17,17,.56);
}

.hf-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hf-item {
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.06);
    background: #fafafa;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

    .hf-item:hover {
        background: #fff;
        border-color: rgba(0,0,0,.10);
        transform: translateY(-1px);
    }

.hf-item-title {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    color: #111;
}

.hf-item-meta,
.hf-muted,
.hf-empty,
.hf-loading {
    font-size: 12px;
    color: rgba(17,17,17,.56);
}

@media (max-width: 900px) {
    .home-forum {
        padding: 0 16px;
    }

    .hf-grid {
        grid-template-columns: 1fr;
    }

    .hf-card {
        padding: 18px;
        border-radius: 20px;
    }

    .hf-title {
        font-size: 20px;
    }
}

/* ===============================
   Home Articles
   =============================== */

/* =========================================================
   FEATURED STORIES
   ========================================================= */

.home-articles {
    width: 100%;
    margin: 56px 0 0;
    padding: 0 28px;
}

.ha-inner {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
}

.ha-title {
    margin: 0 0 18px;
    font-size: clamp(24px, 2vw, 34px);
    font-weight: 800;
    line-height: 1.1;
}

.ha-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.ha-card {
    position: relative;
    display: block;
    min-height: 280px;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
}

.ha-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform .35s ease;
}

.ha-card:hover .ha-bg {
    transform: scale(1.04);
}

.ha-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: linear-gradient( 180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.18) 55%, rgba(0,0,0,.72) 100% );
}

.ha-kicker {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    opacity: .9;
}

.ha-head {
    font-size: clamp(20px, 1.5vw, 30px);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

/* 首页第一张可以更大 */
.ha-grid .ha-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 580px;
}

@media (max-width: 1100px) {
    .ha-grid .ha-card:first-child {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 340px;
    }
}

@media (max-width: 768px) {
    .home-articles {
        padding: 0 16px;
        margin-top: 40px;
    }

    .ha-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

        .ha-card,
        .ha-grid .ha-card:first-child {
            min-height: 300px;
        }
}