/* ============================================================
 * next-chrome 首页换肤样式（T3）
 * 参考 next-alpha 首页视觉（n6 体系），使用 nh-* 局部命名空间，
 * 仅作用于首页（index2.html），不触碰旧业务类与其他页面。
 * 依赖：布局已引入 site-chrome.css / new_style.css / bootstrap / owl / layui。
 * ============================================================ */

/* ---- 主题变量（取自 next-alpha 内联主题） ---- */
body.home {
    --n6-bg: #f5f2f7;
    --n6-purple: #3d1e58;
    --n6-purple-2: #5a2e85;
    --n6-amber: #efa95a;
    --n6-muted: #8a8294;
    --n6-line: rgba(61, 30, 88, .1);
    --n6-hero: linear-gradient(120deg, #4a2375 0%, #6b3a94 55%, #8e5ba6 100%);
    --n6-gold-text: linear-gradient(135deg, #fff3b0 0%, #f7c45a 42%, #b87922 100%);
    --n6-shadow: 0 26px 60px -22px rgba(74, 35, 117, .3);
    --n6-shadow-sm: 0 12px 28px -14px rgba(74, 35, 117, .16);
    --nh-gutter: 70px;
    --nh-cat-title-h: 56px;

    margin: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    background:
        radial-gradient(720px 440px at 92% -6%, rgba(142, 91, 166, .1), transparent 60%),
        radial-gradient(700px 480px at -10% 22%, rgba(74, 35, 117, .05), transparent 55%),
        var(--n6-bg);
}

body.home #indexapp {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    width: 100%;
}

body.home #indexapp > main {
    margin-bottom: 22px;
}

body.home #indexapp > .n6-footer.site-chrome-footer {
    margin-top: auto;
}

/* ---- 布局容器 ---- */
body.home .nh-shell {
    width: 100%;
    margin: 0 auto;
    padding-inline: var(--nh-gutter);
    box-sizing: border-box;
}

body.home .nh-shell *,
body.home .nh-shell *::before,
body.home .nh-shell *::after {
    box-sizing: border-box;
}

body.home .nh-shell a {
    color: inherit;
    text-decoration: none;
}

body.home .nh-main-grid {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    gap: 22px;
    margin-top: 16px;
}

/* ---- 左侧商品分类 ---- */
body.home .nh-category-title {
    display: flex;
    height: var(--nh-cat-title-h);
    align-items: center;
    gap: 10px;
    padding: 0 22px;
    border: 1px solid var(--n6-amber);
    border-radius: 20px 20px 0 0;
    color: #fff;
    background: var(--n6-hero);
    box-shadow: 0 12px 26px -12px rgba(74, 35, 117, .55);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
}

body.home .nh-gold-text {
    color: transparent;
    background-image: var(--n6-gold-text);
    -webkit-background-clip: text;
    background-clip: text;
}

body.home .nh-categories {
    position: relative;
    z-index: 40;
    height: 723px;
    margin: 0;
    padding: 8px;
    list-style: none;
    border: 1px solid var(--n6-amber);
    border-top: 0;
    border-radius: 0 0 20px 20px;
    background: #fff;
    box-shadow: var(--n6-shadow-sm);
}

body.home .nh-category {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 16px;
    gap: 10px;
    height: 70px;
    align-items: center;
    padding: 0 12px 0 14px;
    border-radius: 12px;
    color: #3a3550;
    font-size: 18px;
    transition: background .18s, color .18s;
}

body.home .nh-category:hover,
body.home .nh-category.is-open {
    color: var(--n6-purple);
    background: #f3eff7;
}

body.home .nh-category-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 10px;
    color: var(--n6-purple-2);
    background: #f3eff7;
    font-size: 14px;
    font-weight: 800;
    transition: color .18s, background-color .18s;
}

body.home .nh-category-icon img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 9px;
}

body.home .nh-category:hover .nh-category-icon,
body.home .nh-category.is-open .nh-category-icon {
    color: #fff;
    background: var(--n6-hero);
}

body.home .nh-category > span:nth-child(2) {
    overflow: hidden;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body.home .nh-category-arrow {
    color: #a89fb8;
    font-size: 20px;
}

body.home .nh-submenu {
    position: absolute;
    z-index: 50;
    top: calc(0px - var(--nh-cat-title-h));
    left: calc(100% - 8px);
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px 24px;
    align-content: start;
    width: min(1332px, calc(100vw - 350px));
    height: calc(723px + var(--nh-cat-title-h));
    overflow: auto;
    padding: 22px 26px;
    scrollbar-gutter: stable both-edges;
    scrollbar-width: thin;
    border: 1px solid var(--n6-amber);
    border-radius: 24px;
    background: rgba(255, 255, 255, .95);
    box-shadow: var(--n6-shadow);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
}

body.home .nh-submenu::-webkit-scrollbar {
    width: 8px;
}

body.home .nh-submenu::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: rgba(74, 35, 117, .22);
}

body.home .nh-submenu::-webkit-scrollbar-track {
    background: transparent;
}

body.home .nh-category.is-open .nh-submenu {
    display: grid;
}

body.home .nh-submenu-notice {
    display: flex;
    grid-column: 1 / -1;
    gap: 8px;
    align-items: center;
    height: 32px;
    margin-top: -8px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 14px;
}

body.home .nh-submenu-notice.has-notice {
    color: #ff1a2b;
    background: #fff6f7;
}

body.home .nh-submenu-notice .iconfont {
    flex: none;
    font-size: 15px;
}

body.home .nh-submenu-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

body.home .nh-submenu-main {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
    line-height: 1;
}

body.home .nh-submenu-main img {
    display: block;
    width: 125px;
    height: 125px;
    border-radius: 18px;
    object-fit: cover;
    transition: transform .25s;
}

body.home .nh-submenu-main a:first-child {
    overflow: hidden;
    flex: none;
    border-radius: 16px;
    box-shadow: 0 8px 18px -8px rgba(74, 35, 117, .35);
}

body.home .nh-submenu-main a:first-child:hover img {
    transform: scale(1.12);
}

body.home .nh-submenu-main a {
    color: var(--n6-purple);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.5;
}

body.home .nh-submenu-main a:hover {
    text-decoration: underline;
}

body.home .nh-submenu-links {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

body.home .nh-submenu-links a {
    overflow: hidden;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 7px 10px;
    border-radius: 10px;
    color: #4a4460;
    font-size: 16px;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color .2s, background-color .2s, transform .2s;
}

body.home .nh-submenu-links a:hover {
    color: var(--n6-purple);
    background: #f3eff7;
    transform: translateX(6px);
}

body.home .nh-submenu-links .is_special {
    position: relative;
    overflow: visible;
    color: #ff1a2b;
}

body.home .nh-submenu-links .is_special::after {
    position: absolute;
    top: 2px;
    right: -18px;
    display: block;
    width: 28px;
    height: 16px;
    content: '';
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

body.home .nh-submenu-links .menu_hot::after {
    background-image: url(../new_image/menu_hot.png);
}

body.home .nh-submenu-links .menu_new::after {
    background-image: url(../new_image/menu_new.png);
}

body.home .nh-submenu-links .menu_con::after {
    background-image: url(../new_image/menu_con.png);
}

body.home .nh-submenu-links .menu_sale::after {
    background-image: url(../new_image/menu_sale.png);
}

body.home .nh-submenu-group:not(.nh-row-start) .nh-submenu-links {
    border-left: 1px dashed var(--n6-line);
}

/* ---- 订单合法性审查弹窗：确认按钮主题化 ---- */
body.home .layui-layer.nh-notice-layer .layui-layer-btn0 {
    border-color: var(--n6-purple-2);
    border-radius: 8px;
    color: #fff;
    background: var(--n6-purple-2);
}

body.home .layui-layer.nh-notice-layer .layui-layer-btn0:hover {
    border-color: #6b3a94;
    background: #6b3a94;
}

/* ---- 首屏 Hero 轮播（next-alpha 同款结构：渐变背景固定 + 左侧文案 + 右下产品图轮换） ---- */
body.home .nh-hero {
    position: relative;
    height: 452px;
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(circle at 84% 10%, rgba(239, 169, 90, .25), transparent 26%),
        radial-gradient(circle at 6% 100%, rgba(255, 255, 255, .12), transparent 32%),
        var(--n6-hero);
    box-shadow: var(--n6-shadow);
}

body.home .nh-hero::after {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    content: "";
    pointer-events: none;
}

/* 轮播图层：≥1700px 右侧全高、图片垂直居中，浮动围绕中心 */
body.home .nh-hero-slides {
    position: absolute;
    z-index: 2;
    top: 7px;
    /* 80px = 右侧切换按钮占位(18px + 48px 宽) + 14px 间隙，避免图片右缘压住按钮 */
    right: 80px;
    bottom: 0;
    width: min(60%, 895px);
    height: 100%;
    pointer-events: none;
}

body.home .nh-hero-slides a {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .6s ease;
    pointer-events: auto;
}

body.home .nh-hero-slides a.is-active {
    opacity: 1;
}

body.home .nh-hero-slides img {
    display: block;
    /* 轮播图等比显示：以 840 × 400 px（21:10）为标准比例，保证每张图尺寸一致、不拉伸变形 */
    aspect-ratio: 840 / 400;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
    filter: drop-shadow(0 24px 28px rgba(30, 12, 48, .45));
    animation: nh-float 5s ease-in-out infinite;
}

@keyframes nh-float {
    50% { transform: translateY(-10px); }
}

body.home .nh-hero-copy {
    position: absolute;
    z-index: 3;
    top: 48px;
    left: 9%;
    padding: 0;
    border-radius: 0;
    background: none;
}

body.home .nh-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 54px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -1px;
    text-shadow: 0 4px 22px rgba(30, 12, 48, .35);
}

body.home .nh-hero h1.nh-gold-text,
body.home .nh-hero-points .nh-gold-text {
    text-shadow: none;
    filter: drop-shadow(0 3px 10px rgba(30, 12, 48, .45));
}

body.home .nh-ribbon {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 26px;
    border-radius: 999px;
    color: #4a2410;
    background: var(--n6-amber);
    box-shadow: 0 12px 26px -8px rgba(239, 169, 90, .6);
    font-weight: 800;
    letter-spacing: 1px;
}

body.home .nh-hero-points {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    margin-top: 26px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

body.home .nh-hero-points span::before {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    margin-right: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    content: "✓";
    font-size: 12px;
}

body.home .nh-flower {
    position: absolute;
    z-index: 1;
    top: 24px;
    right: 39%;
    color: rgba(255, 255, 255, .2);
    font-size: 92px;
    line-height: 1;
    transform: rotate(-12deg);
    text-shadow: 0 8px 18px rgba(30, 12, 48, .16);
    pointer-events: none;
}

body.home .nh-slider-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: none;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: -24px;
    border: 0;
    border-radius: 50%;
    color: var(--n6-purple);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 8px 18px -6px rgba(30, 12, 48, .4);
    font-size: 26px;
    cursor: pointer;
}

body.home .nh-hero.has-slides .nh-slider-arrow {
    display: grid;
}

body.home .nh-slider-arrow svg {
    display: block;
    width: 28px;
    height: 28px;
    flex: none;
    stroke: currentColor;
    stroke-width: 2.5;
}

body.home .nh-slider-arrow:hover {
    color: #4a2410;
    background: var(--n6-amber);
}

body.home .nh-slider-arrow.prev { left: 18px; }
body.home .nh-slider-arrow.next { right: 18px; }

body.home .nh-dots {
    position: absolute;
    z-index: 4;
    bottom: 22px;
    left: 50%;
    display: none;
    gap: 8px;
    transform: translateX(-50%);
}

body.home .nh-hero.has-slides .nh-dots {
    display: flex;
}

body.home .nh-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .4);
    transition: all .25s;
    cursor: pointer;
}

body.home .nh-dot.is-active {
    width: 28px;
    background: var(--n6-amber);
    box-shadow: 0 3px 8px rgba(239, 169, 90, .6);
}

/* ---- 滚动通告 + 合规提示 ---- */
body.home .nh-notice {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    height: 54px;
    overflow: hidden;
    margin-top: 14px;
    border: 1px solid var(--n6-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--n6-shadow-sm);
    align-items: center;
}

body.home .nh-notice strong {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 18px;
    color: var(--n6-purple);
    font-size: 15px;
}

body.home .nh-notice strong::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--n6-amber);
    box-shadow: 0 0 0 4px rgba(239, 169, 90, .2);
    content: "";
}

body.home .nh-notice-track {
    display: flex;
    min-width: 0;
    align-items: center;
    overflow: hidden;
    color: var(--n6-muted);
    white-space: nowrap;
}

body.home .nh-notice-track .nh-notice-text {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    border: 0;
    background: none;
    color: var(--n6-muted);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    animation: nh-marquee 28s linear infinite;
}

body.home .nh-notice-track .nh-notice-text span {
    flex-shrink: 0;
}

body.home .nh-notice-track .nh-notice-text em {
    margin-left: 6px;
    color: var(--n6-purple);
    font-style: normal;
    font-weight: 700;
}

body.home .nh-notice-track .nh-notice-text:hover em {
    text-decoration: underline;
}

body.home .nh-notice:hover .nh-notice-track .nh-notice-text {
    animation-play-state: paused;
}

/* 两份文案（间隔=轨道宽度）整体位移-50%：上一份尾部滚出左缘与下一份头部进入右缘为同一时刻，循环无缝、任意时刻仅一条可见 */
@keyframes nh-marquee {
    to { transform: translateX(-50%); }
}

/* ---- 公告 / 文章 / 登录 三面板 ---- */
body.home .nh-info-grid {
    display: grid;
    grid-template-columns: 1.03fr 1.35fr 1.32fr;
    gap: 14px;
    height: 242px;
    margin-top: 14px;
}

body.home .nh-panel {
    overflow: hidden;
    border: 1px solid var(--n6-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--n6-shadow-sm);
    transition: box-shadow .25s, transform .25s;
}

body.home .nh-panel:hover {
    box-shadow: var(--n6-shadow);
    transform: translateY(-3px);
}

body.home .nh-panel-head {
    display: flex;
    height: 54px;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: var(--n6-purple);
    font-size: 17px;
    font-weight: 800;
}

body.home .nh-panel-head a {
    color: var(--n6-muted);
    font-size: 14px;
    transition: color .2s;
}

body.home .nh-panel-head a:hover {
    color: var(--n6-purple);
}

body.home .nh-list {
    margin: 0;
    padding: 0 20px;
    list-style: none;
    max-height: calc(100% - 54px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 35, 117, .2) transparent;
}

body.home .nh-list::-webkit-scrollbar {
    width: 5px;
}

body.home .nh-list::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: rgba(74, 35, 117, .2);
}

body.home .nh-announcement {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 6px;
    height: 46px;
    align-items: center;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 15px;
}

body.home .nh-announcement:hover {
    background: #f3eff7;
}

body.home .nh-tag {
    display: grid;
    height: 22px;
    padding: 0 4px;
    place-items: center;
    border-radius: 7px;
    color: var(--n6-purple);
    background: #f3eff7;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

body.home .nh-announcement > a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body.home .nh-announcement > a:hover {
    color: var(--n6-purple);
}

body.home .nh-announcement time {
    overflow: hidden;
    color: var(--n6-muted);
    font-size: 15px;
    text-align: right;
    white-space: nowrap;
}

body.home .nh-empty {
    display: grid;
    min-height: 120px;
    place-items: center;
    color: var(--n6-muted);
}

/* ---- 活动文章条目（图 + 标题 + 摘要，next-alpha 同款布局） ---- */
body.home .nh-article {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    height: 58px;
    align-items: center;
}

body.home .nh-article-image {
    position: relative;
    display: block;
    height: 44px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #7fd8f5, #ffcf6c);
    box-shadow: 0 8px 16px -8px rgba(58, 120, 160, .45);
    transition: transform .25s;
}

body.home .nh-article-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.home .nh-article:hover .nh-article-image {
    transform: scale(1.05);
}

body.home .nh-article-title {
    display: block;
    overflow: hidden;
    color: #3d1e58;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body.home .nh-article-title:hover {
    color: var(--n6-purple-2);
}

body.home .nh-article-desc {
    overflow: hidden;
    margin-top: 4px;
    color: var(--n6-muted);
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ---- 登录面板 ---- */
body.home .nh-login {
    padding: 22px 26px 16px;
}

body.home .nh-welcome {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

body.home .nh-avatar {
    display: flex;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--n6-hero);
    box-shadow: 0 10px 22px -8px rgba(74, 35, 117, .55);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

body.home .nh-avatar {
    color: transparent;
}

body.home .nh-avatar::before {
    color: transparent;
    background-image: var(--n6-gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    content: attr(data-char);
}

body.home .nh-avatar:not([data-char])::before {
    content: none;
}

body.home .nh-avatar > svg {
    display: block;
    color: #f4c95d;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

body.home .nh-welcome strong {
    display: block;
    overflow: hidden;
    margin-bottom: 6px;
    color: var(--n6-purple);
    font-size: 18px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body.home .nh-welcome span {
    color: var(--n6-muted);
}

body.home .nh-login-row,
body.home .nh-login-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

body.home .nh-login-row a {
    display: grid;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    color: #4a2410;
    background: var(--n6-amber);
    box-shadow: 0 10px 22px -8px rgba(239, 169, 90, .6);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    transition: transform .15s, background-color .15s;
}

body.home .nh-login-row a:hover {
    color: #4a2410;
    background: #e78f3a;
    transform: translateY(-2px);
}

body.home .nh-login-row a:last-child {
    border: 1.5px solid rgba(74, 35, 117, .25);
    color: var(--n6-purple);
    background: #fff;
    box-shadow: none;
}

body.home .nh-login-row a:last-child:hover {
    color: var(--n6-purple);
    background: #f3eff7;
    transform: translateY(-2px);
}

body.home .nh-login-links {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

body.home .nh-login-link {
    display: grid;
    gap: 4px;
    place-items: center;
    min-height: 50px;
    padding: 6px 2px;
    border: 1px solid rgba(74, 35, 117, .08);
    border-radius: 12px;
    color: #4a4460;
    background: #f3eff7;
    font-size: 14px;
    font-weight: 700;
    transition: transform .15s, color .2s, background-color .2s;
}

body.home .nh-login-link svg {
    display: block;
    width: 20px;
    height: 20px;
    flex: none;
}

body.home .nh-login-link:hover {
    color: #fff;
    background: var(--n6-hero);
    transform: translateY(-2px);
}

/* ---- 保障条 ---- */
body.home .nh-assurances {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 88px;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 19px;
    border: 1px solid var(--n6-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--n6-shadow-sm);
}

body.home .nh-assurance {
    display: flex;
    justify-content: center;
    gap: 14px;
    align-items: center;
}

body.home .nh-assurance-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--n6-hero);
    box-shadow: 0 8px 18px -6px rgba(74, 35, 117, .55);
    font-size: 18px;
    font-weight: 800;
    transform-origin: center;
    transition: transform .25s ease;
}

@media (hover: hover) {
    body.home .nh-assurance-icon:hover {
        z-index: 2;
        transform: scale(1.2) rotate(-7deg);
    }
}

body.home .nh-assurance b {
    display: block;
    color: var(--n6-purple);
    font-size: 16px;
}

body.home .nh-assurance small {
    display: block;
    color: var(--n6-muted);
    font-size: 14px;
}



/* ============================================================
 * 响应式
 * ============================================================ */
@media (max-width: 1600px) {
    body.home {
        --nh-gutter: 40px;
    }
}

/* ≤1699px：隐藏 hero 文案，轮播铺满容器（四周留白、上下居中，保持浮动动画） */
@media (max-width: 1699.98px) {
    body.home .nh-hero-copy {
        display: none;
    }

    body.home .nh-hero-slides {
        right: 0;
        width: 100%;
        padding: 26px;
    }

    /* 高度驱动：按容器高度等比缩放，840×400 标准图恰好完整显示 */
    body.home .nh-hero-slides img {
        width: auto;
        height: 100%;
        max-width: 100%;
    }
}

@media (max-width: 1180px) {
    body.home {
        --nh-gutter: 24px;
    }

    body.home .nh-main-grid {
        grid-template-columns: 245px minmax(0, 1fr);
    }

    body.home .nh-hero h1 {
        font-size: 42px;
    }

    body.home .nh-submenu {
        width: min(900px, calc(100vw - 300px));
    }
}

@media (max-width: 820px) {
    body.home {
        --nh-gutter: 14px;
    }

    body.home .nh-main-grid {
        display: block;
    }

    body.home .nh-sidebar {
        display: none;
    }

    body.home .nh-hero {
        height: 440px;
        border-radius: 22px;
    }

    body.home .nh-hero-copy {
        top: 32px;
        left: 34px;
    }

    body.home .nh-hero h1 {
        font-size: 36px;
    }

    body.home .nh-flower {
        top: 18px;
        right: 18%;
        font-size: 68px;
    }

    body.home .nh-hero-slides {
        padding: 12px;
    }

    /* 窄屏恢复宽度驱动，避免图片超出可视宽度 */
    body.home .nh-hero-slides img {
        width: 100%;
        height: auto;
        border-radius: 12px;
    }

    body.home .nh-notice {
        grid-template-columns: 96px minmax(0, 1fr);
        height: auto;
    }

    body.home .nh-info-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    body.home .nh-panel {
        min-height: 240px;
    }

    body.home .nh-assurances {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        padding: 16px 0;
    }

    body.home .nh-assurance:last-child {
        grid-column: 1 / 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home .nh-shell *,
    body.home .nh-shell *::before,
    body.home .nh-shell *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
