/* 官网首页 Hero 轮播样式：桌面数值取自参考站 smdfeeder.com，
   轮播轨道、箭头与指示点由 site-carousel.js 驱动，此处只负责静态布局与两态视觉。 */
.public-hero { position: relative; overflow: hidden; background: var(--site-primary-deep); }
.public-hero__viewport { overflow: hidden; }
/* 轨道总宽与单元宽度由脚本写入 --hero-total（幻灯片数 + 2 个克隆项）后计算，
   保证每张幻灯片恰好占满视口，位移百分比相对轨道总宽，与参考站 calc(500%) 等价。 */
.public-hero__track {
    display: flex; margin: 0; padding: 0; list-style: none;
    width: calc(var(--hero-total, 1) * 100%);
    transition: transform 500ms;
}
/* 每张幻灯片占满视口宽度，JS 通过克隆首尾实现无限循环。
   桌面参考站 900px；短屏笔记本（如 1366×768）用 min() 收窄，
   避免箭头与指示点落到首屏外看不见；移动端由下方媒体查询接管。 */
.public-hero__slide { position: relative; flex: 0 0 auto; width: calc(100% / var(--hero-total, 1)); height: min(900px, calc(100vh - 80px)); }
.public-hero__link, .public-hero__image { display: block; width: 100%; height: 100%; }
.public-hero__image { object-fit: cover; object-position: center; }

/* 左右箭头：80px 圆形半透明深底，悬停或聚焦时变主题青，与参考站一致。 */
.public-hero__arrow {
    position: absolute; top: 50%; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    width: 80px; height: 80px; margin-top: -28px; padding: 0;
    border: 0; border-radius: 50%; cursor: pointer;
    color: #fff; background: rgba(26, 34, 47, .5);
    transition: background .3s linear;
}
.public-hero__arrow--prev { inset-inline-start: 12px; }
.public-hero__arrow--next { inset-inline-end: 12px; }
.public-hero__arrow:hover, .public-hero__arrow:focus-visible { background: var(--site-primary); }
.public-hero__arrow-icon { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 底部指示点：10px 白圆，当前项主题青，与参考站一致。 */
.public-hero__dots {
    position: absolute; bottom: 37px; left: 0; z-index: 8;
    display: flex; align-items: center; justify-content: center; width: 100%;
}
.public-hero__dot {
    width: 10px; height: 10px; margin: 0 4px; padding: 0;
    border: 0; border-radius: 50%; cursor: pointer;
    background: #fff; transition: background .3s linear;
}
.public-hero__dot:hover { background: var(--site-primary); }
.public-hero__dot.is-current { background: var(--site-primary); }

/* 移动端：Hero 高度收窄至首屏内，箭头与圆点同步缩小，保证轮播控件完整可见。
   参考站移动站 Hero 总高 268px；本站 Banner 图为运营上传的带标题文字大图，
   520px 是文字可读性与首屏完整性的平衡值（390×844 视口下不打满一屏）。 */
@media screen and (max-width: 920px) {
    .public-hero__slide { height: 520px; }
    .public-hero__arrow { width: 44px; height: 44px; margin-top: -22px; }
    .public-hero__arrow-icon { width: 26px; height: 26px; }
    .public-hero__arrow--prev { inset-inline-start: 8px; }
    .public-hero__arrow--next { inset-inline-end: 8px; }
    .public-hero__dots { bottom: 20px; }
}
@media screen and (max-width: 520px) {
    .public-hero__slide { height: 440px; }
}

@media (prefers-reduced-motion: reduce) {
    .public-hero__track { transition: none; }
    .public-hero__arrow, .public-hero__dot { transition: none; }
}
