/* ===================================================
   SR STAR — 导航栏重写 + 轮播图样式
   参考原站截图：黑底导航 + 左产品图/右文字+缩图 轮播
   =================================================== */

/* ===== 导航栏覆盖 ===== */
.site-header {
    background: #111111 !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner-wide {
    max-width: 100%;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* ---- Logo 图片 ---- */
.site-logo {
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Logo 图片：白色背景裁剪 + 适当大小 */
.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    /* 图片本身白底，加圆角和内边距融入黑色导航栏 */
    background: #ffffff;
    border-radius: 6px;
    padding: 4px 8px;
    display: block;
}

/* 旧文字 Logo 样式（保留定义以防模板残留引用，但不再使用） */
.logo-badge, .lb-top, .lb-sr, .lb-star, .lb-sub { display: none; }

/* ---- 导航菜单 ---- */
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: block;
    padding: 10px 28px;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 0;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
    color: #c8a84b;
    background: rgba(200,168,75,0.08);
}

/* ---- 汉堡（移动端） ---- */
.nav-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: rgba(255,255,255,0.85);
    margin: 6px 0;
    transition: transform 0.25s;
}

/* ===================================================
   轮播图（Hero Banner）
   布局：左半 = 产品大图（深色背景），右半 = 文字+缩图
   =================================================== */

.hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0d0d0d;
    /* 高度随视口，保持 16:5 宽高比 */
    aspect-ratio: 16 / 5;
    min-height: 300px;
    max-height: 500px;
    user-select: none;
}

/* ---- 幻灯片容器 ---- */
.banner-track {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

/* ---- 单张幻灯片 ---- */
.banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    pointer-events: none;
}

.banner-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ---- 左侧：产品图面板 ---- */
.slide-left {
    width: 46%;
    flex-shrink: 0;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.slide-left img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    filter: drop-shadow(0 4px 24px rgba(0,0,0,0.6));
    transition: transform 0.9s cubic-bezier(0.25,0.46,0.45,0.94);
}

.banner-slide.is-active .slide-left img {
    transform: scale(1.03);
}

/* 左侧占位（无图时） */
.slide-left-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(200,168,75,0.5);
    font-size: 80px;
    width: 100%;
    height: 100%;
}

/* ---- 右侧：文字 + 缩图面板 ---- */
.slide-right {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 40px 52px;
}

/* 背景图层 */
.slide-right-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.9s cubic-bezier(0.25,0.46,0.45,0.94);
}

.banner-slide.is-active .slide-right-bg {
    transform: scale(1.04);
}

/* 右侧遮罩（提升文字可读性） */
.slide-right::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.25) 0%,
        rgba(0,0,0,0.15) 40%,
        rgba(0,0,0,0.55) 100%
    );
    pointer-events: none;
}

/* 右侧内容（在遮罩上层） */
.slide-right-content {
    position: relative;
    z-index: 2;
}

/* 主标题 */
.slide-title {
    font-family: 'Noto Serif SC', 'STSong', Georgia, serif;
    font-size: clamp(24px, 3.5vw, 46px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
    /* 进入动画 */
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s 0.2s ease, transform 0.6s 0.2s ease;
}

.banner-slide.is-active .slide-title {
    opacity: 1;
    transform: translateY(0);
}

/* 分割线 */
.slide-divider {
    width: 60px;
    height: 2px;
    background: rgba(255,255,255,0.6);
    margin: 10px 0 14px;
    opacity: 0;
    transition: opacity 0.5s 0.35s ease, width 0.5s 0.35s ease;
}

.banner-slide.is-active .slide-divider {
    opacity: 1;
    width: 80px;
}

/* 副标题 */
.slide-subtitle {
    font-size: clamp(11px, 1.1vw, 14px);
    color: rgba(255,255,255,0.82);
    line-height: 1.6;
    margin-bottom: 20px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s 0.45s ease, transform 0.6s 0.45s ease;
}

.banner-slide.is-active .slide-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* 缩略图行 */
.slide-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s 0.6s ease, transform 0.6s 0.6s ease;
}

.banner-slide.is-active .slide-thumbs {
    opacity: 1;
    transform: translateY(0);
}

.slide-thumb {
    width: clamp(60px, 9vw, 120px);
    height: clamp(40px, 6vw, 80px);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.4);
    flex-shrink: 0;
}

.slide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 缩略图占位 */
.slide-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    font-size: 20px;
    color: rgba(255,255,255,0.3);
}

/* 底部 caption 文字 */
.slide-caption {
    position: absolute;
    right: 16px;
    bottom: 52px;       /* 在圆点指示器上方 */
    z-index: 3;
    font-size: 10px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.5px;
    text-align: right;
    pointer-events: none;
    max-width: 55%;
}

/* ---- 左右切换箭头 ---- */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    width: 36px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
    padding: 0;
    user-select: none;
    border-radius: 2px;
}

.banner-arrow:hover {
    background: rgba(200,168,75,0.5);
    color: white;
}

.banner-arrow-prev { left: 10px; }
.banner-arrow-next { right: 10px; }

/* ---- 圆点指示器 ---- */
.banner-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: 1px solid rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
    padding: 0;
}

.banner-dot.is-active {
    background: rgba(255,255,255,0.9);
    transform: scale(1.25);
}

.banner-dot:hover:not(.is-active) {
    background: rgba(255,255,255,0.6);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .hero-banner { aspect-ratio: 16 / 7; max-height: 360px; }
    .slide-left { width: 42%; }
    .slide-right { padding: 20px 20px 48px; }
}

@media (max-width: 640px) {
    .nav-inner-wide { padding: 0 16px; }
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0; right: 0;
        background: #111;
        padding: 8px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        z-index: 999;
    }
    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; }
    .site-nav a { padding: 12px 24px; font-size: 15px; }

    .hero-banner { aspect-ratio: unset; height: 280px; min-height: unset; }
    .banner-slide { flex-direction: column; }
    .slide-left { width: 100%; height: 50%; }
    .slide-right { height: 50%; padding: 14px 16px 40px; }
    .slide-thumbs { display: none; }
    .banner-arrow { display: none; }
    .lb-sr { font-size: 28px; }
    .lb-star { font-size: 22px; }
    .lb-sub { font-size: 10px; }
}

/* ===================================================
   产品卡片联动高亮
   =================================================== */

/* 默认卡片降低透明度，突出当前激活项 */
#productList .product-card {
    transition: opacity 0.35s ease, box-shadow 0.35s ease,
                transform 0.35s ease, border-color 0.35s ease;
    opacity: 0.72;
    border-left: 3px solid transparent;
}

/* 当前与轮播对应的激活卡片 */
#productList .product-card--active {
    opacity: 1;
    border-left: 3px solid var(--color-accent, #0072bc);
    box-shadow: 0 4px 20px rgba(0,114,188,0.18);
    transform: translateX(4px);
}

/* 鼠标悬停时也全亮（已是 <a>，cursor: pointer 原生即有） */
#productList .product-card:hover {
    opacity: 1;
}

/* ===================================================
   轮播图：游标 & 「点击查看详情」提示
   =================================================== */

/* 幻灯片整体可点击提示 */
.banner-slide-link {
    cursor: pointer;
}

/* 右下角「点击查看详情」标签 */
.banner-cta {
    position: absolute;
    right: 20px;
    bottom: 44px;
    z-index: 20;
    background: rgba(200,168,75,0.85);
    color: #111;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 20px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s, transform 0.3s;
}

/* 鼠标进入轮播区域时显示提示 */
.hero-banner:hover .banner-cta {
    opacity: 1;
    transform: translateY(0);
}
