/*
 * Temu / TikTok 落地页公共模块样式（荣誉奖项单行轮播 + 小秘视界内容区域）。
 * 维护约定：两个模块的样式修改请改本文件；两个落地页在各自页面样式之后引入本文件。
 */

/* 轮播视口对齐页面中间内容区域宽度（1156 居中），裁剪边界随容器走，不再贴屏幕两侧。 */
.landing-award__viewport {
    width: 1270px;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.landing-award__track {
    display: flex;
    gap: 24px;
    width: max-content;
    transition: transform .45s ease;
    will-change: transform;
}

/* 卡片按 UI 反馈去掉边框与 padding，仅保留图片与标题。 */
.landing-award__card {
    position: relative;
    width: 180px;
    height: 197px;
    flex: 0 0 180px;
}

.landing-award__pic {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 116px;
    margin-bottom: 10px;
}

.landing-award__pic img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.landing-award__card h3 {
    text-align: center;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    color: #1D1F23;
}

.landing-award__card--hot {
    border-color: #1479CD;
    box-shadow: 0 4px 6px -3px rgba(38, 38, 38, 0.1), 0 8px 12px 1px rgba(38, 38, 38, 0.06), 0 3px 16px 2px rgba(38, 38, 38, 0.05), 0 0 1px 0 rgba(38, 38, 38, 0.2);
}

.landing-award__card--hot::after {
    content: "";
    position: absolute;
    left: 145px;
    bottom: 6px;
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231D1F23'%3E%3Cpath d='M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4.54-2.26c-.17-.07-.35-.11-.54-.11H13v-6c0-.83-.67-1.5-1.5-1.5S10 6.67 10 7.5v10.74l-3.43-.72c-.08-.01-.15-.03-.24-.03-.31 0-.59.13-.79.33l-.79.8 4.94 4.94c.27.27.65.44 1.06.44h6.79c.75 0 1.33-.55 1.44-1.28l.75-5.27c.01-.07.02-.14.02-.2 0-.62-.38-1.16-.91-1.38z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.landing-award__arrows {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.landing-award__arrow-sm {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #F5F5F5;
    color: #4C4F54;
    font-size: 18px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.landing-award__arrow-sm:hover {
    background: #1479CD;
    color: #FFFFFF;
}

/* Temu 页没有 TK 页的全局标题 margin 重置，单独清零，避免卡片标题两行时贴到卡片底边。 */
.landing-award__card h3 {
    margin: 0;
}

/* 荣誉轮播视口与小秘视界的滚动进场动画（内容区域整体向上推一次，卡片本身不做动画，两页一致）。 */
/* 透明初始态由 JS 添加 reveal-pending 类实现：脚本加载失败时元素直接正常显示，不会整块空白。 */
.reveal-pending {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}

.reveal-pending.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-pending {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* 两个组件内链接与箭头的点击焦点黑框去除。 */
.landing-award__viewport a:focus,
.landing-award__viewport a:active,
.landing-award__arrows a:focus,
.landing-award__arrows a:active,
.landing-award__arrow:focus,
.landing-award__arrow:active,
.landing-blog a:focus,
.landing-blog a:active,
.landing-blog a:focus-visible {
    outline: none;
    box-shadow: none;
}

/* ===== 小秘视界内容区域样式（复制自 temu/index.css，Temu / TikTok 共用）。 ===== */
.landing-blog {
    padding-bottom: 100px;
}
.landing-blog-heading {
    width: 100%;
    margin-bottom: 48px;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
}
.landing-blog-heading > div {
    text-align: center;
}
.landing-blog-heading h2 {
    margin: 0 0 8px;
    font-size: 36px;
    line-height: 40px;
    font-weight: 600;
}
.landing-blog-heading p {
    margin: 0;
    color: #8d9398;
    font-size: 16px;
    line-height: 24px;
}
.landing-blog-more {
    position: absolute;
    right: 0;
    bottom: 0;
    color: #1479cd;
    font-size: 16px;
    line-height: 24px;
    white-space: nowrap;
}
.landing-blog-more:hover {
    color: #1479cd;
}
.landing-blog-more:focus,
.landing-blog-more:focus-visible,
.landing-blog-more:active,
.landing-blog-main__body > a:focus,
.landing-blog-main__body > a:focus-visible,
.landing-blog-main__body > a:active {
    outline: 0;
    box-shadow: none;
}
.landing-blog-tabs {
    display: flex;
    gap: 24px;
}
.landing-blog-tabs button {
    min-height: 36px;
    padding: 8px 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    font-size: 16px;
}
.landing-blog-tabs button.is-active {
    border-bottom-color: #1479cd;
    color: #1479cd;
}
.landing-blog-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 443px 1fr;
    gap: 32px;
}
.landing-blog-main, .landing-blog-list article {
    overflow: hidden;
    border: 1px solid rgba(223,226,231,.6);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.landing-blog-main:hover, .landing-blog-list article:hover {
    border-color: #1479cd;
    box-shadow: 0 4px 6px -3px rgba(38,38,38,.1), 0 8px 12px 1px rgba(38,38,38,.06), 0 3px 16px 2px rgba(38,38,38,.05);
}
.landing-blog-main > img {
    width: 100%;
    height: 300px;
    display: block;
    object-fit: cover;
}
.landing-blog-main__body {
    padding: 24px;
}
.landing-blog-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #8d9398;
    font-size: 12px;
    line-height: 16px;
    margin-left: 4px;
}
.landing-blog-meta span {
    padding: 4px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #45556c;
}
.landing-blog-date-icon {
    width: 12px;
    height: 12px;
}
.landing-blog .landing-blog-meta .landing-blog-date-icon {
    width: 12px;
    height: 12px;
    border-radius: 0;
    margin-left: 12px;
}
.landing-blog h3 {
    margin: 16px 0 8px;
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
}
.landing-blog p {
    margin: 0;
    color: #8d9398;
    font-size: 14px;
    line-height: 20px;
}
.landing-blog-main__body a {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(223,226,231,.4);
    color: #1479cd;
    font-size: 14px;
}
.landing-blog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.landing-blog-list article {
    min-height: 174px;
    padding: 21px;
    display: flex;
    gap: 24px;
    border-radius: 12px;
}
.landing-blog-list article img {
    width: 176px;
    height: 132px;
    border-radius: 8px;
    object-fit: cover;
}
.landing-blog-list article h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 26px;
}

/* 荣誉轮播 56px 圆形箭头按钮公共样式（Temu / TikTok 两页一致）。 */
.landing-award__arrow {
    width: 56px;
    height: 56px;
    border: 0;
    text-align: center;
    line-height: 48px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #4c4f54;
    font-size: 30px;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.landing-award__arrow:hover {
    background: #1479cd;
    color: #fff;
}

/* 小秘视界标题区公共样式（标题 + 查看更多）。 */
.landing-blog-heading {
    width: 100%;
    margin-bottom: 48px;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
}
.landing-blog-heading > div {
    text-align: center;
}
.landing-blog-heading h2 {
    margin: 0 0 8px;
    font-size: 36px;
    line-height: 40px;
    font-weight: 600;
}
.landing-blog-heading p {
    margin: 0;
    color: #8d9398;
    font-size: 16px;
    line-height: 24px;
}
.landing-blog-more {
    position: absolute;
    right: 0;
    bottom: 0;
    color: #1479cd;
    font-size: 16px;
    line-height: 24px;
    white-space: nowrap;
}
.landing-blog-more:hover {
    color: #1479cd;
}
