/* ========== 详情页通用样式 ========== */

/* CSS变量 */
:root {
    --brand: #FF6A00;
    --brand-hover: #E65C00;
    --primary: #0070f3;
    --gradient: linear-gradient(135deg, #0070f3 0%, #0070f3 100%);
    --text-title: #1A1A1A;
    --text-body: #666666;
    --text-muted: #999999;
    --bg: #FFFFFF;
    --bg-subtle: #F5F7FA;
    --border: #E8ECF0;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Banner背景容器 */
.banner-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}
/* JS 未就绪时的静态光晕，避免首屏空白；与球体位置大致一致 */
.banner-bg-container::before {
    content: '';
    position: absolute;
    top: 42%;
    left: 62%;
    width: min(90vw, 920px);
    height: min(90vw, 920px);
    transform: translate(-50%, -35%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.45) 0%, rgba(74, 158, 255, 0.2) 35%, rgba(74, 158, 255, 0.06) 55%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.banner-bg-container canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.45s ease;
    will-change: opacity;
}
.banner-bg-container canvas.is-ready {
    opacity: 1;
}

/* Hero区域 */
.product-detail-hero {
    background: linear-gradient(135deg, #0070f3 0%, #0056d2 50%, #003fa3 100%);
    padding: 60px 0 48px;
    position: relative;
    overflow: hidden;
}
.product-detail-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}
.product-detail-hero-title {
    font-size: 38px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 16px;
}
.product-detail-hero-breadcrumb {
    margin-top: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}
.product-detail-hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
}

/* 三栏布局 */
.product-detail-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 32px;
    align-items: start;
}

/* 左侧边栏 */
.product-sidebar-left {
    position: sticky;
    top: 2rem;
    align-self: start;
}
.sidebar-left-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 右侧边栏 */
.product-sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 主内容区 */
.product-main-content {
    min-width: 0;
}

/* 模块区块 */
.module-block {
    margin-bottom: 32px;
}
.module-block:last-child {
    margin-bottom: 0;
}
.module-header {
    margin-bottom: 16px;
    padding-bottom: 0;
}
.module-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-title);
    margin: 0;
    line-height: 1.4;
}
.section-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* 信息卡片 */
.info-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}

/* 指令项 */
.directive-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.directive-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.directive-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}
.directive-item h3 a {
    color: #1a1a1a;
    text-decoration: none;
}
.directive-item h3 a:hover {
    color: #0070f3;
}
.directive-code {
    font-size: 13px;
    color: #666;
    font-weight: normal;
}
.directive-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}
.directive-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 关联行业模块 */
.industry-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}
.industry-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.industry-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}
.industry-item h3 a {
    color: #1a1a1a;
    text-decoration: none;
}
.industry-item h3 a:hover {
    color: #0070f3;
}
.industry-overview {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}
.industry-overview p {
    margin: 0;
}

/* 风险等级 & 认证模式 */
.risk-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.risk-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}
.risk-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.risk-label {
    flex-shrink: 0;
    font-weight: 600;
    color: #1a1a1a;
    background: #eff6ff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 14px;
}

/* 侧边栏卡片 */
.sidebar-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    transition: all 0.2s;
}
.sidebar-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* 概述模块统一字体样式（产品/行业/指令页通用） */
.product-overview-plain {
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

/* 概述、成功案例首行缩进 */
.product-overview-plain p {
    text-indent: 2em;
    margin: 0 0 12px 0;
    line-height: 1.5;
}
.product-overview-plain p:first-child {
    text-indent: 2em;
}
/* 相关资讯、认证策略不缩进 */
.news-item p {
    text-indent: 0;
}
.case-desc {
    text-indent: 2em;
}

/* 响应式 */
@media (max-width: 1200px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .product-sidebar-left,
    .product-sidebar-right {
        display: none;
    }
}

/* ========== 手机端自适应：容器高度设为90px（裁剪方案） ========== */
/* 手机端Banner容器高度设为90px，overflow裁剪超出部分 */
/* 内部球体、光点、文字保持原始大小不变，canvas居中显示仅可视区域变小 */
@media (max-width: 767px) {
    .product-detail-hero {
        height: 90px;
        overflow: hidden;
    }
    .banner-bg-container canvas {
        display: none;
    }
}

/* ========== 关于我们 / 联系我们 页面：取消内容卡片上移 ========== */
/* 消除旧布局中"内容卡片压在 banner 上"的负边距，避免内容遮挡 banner 标题 */
.abNy_aboutus .NyAbUs_gsjj {
    margin-top: 60px !important;
}
.abNy_contact .NyContact_top {
    margin-top: 0;
}
.abNy_aboutus .NyAbUs_Case {
    padding-bottom: 60px;
}

/* ========== 右侧快捷到达区样式（合并自 sidebar-nav.css） ========== */
.product-sidebar-nav {
    flex: 0 0 240px;
    position: sticky;
    top: 2rem;
    align-self: start;
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6B7280;
    margin-bottom: 1.25rem;
}

.sidebar-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.sidebar-nav-list li a,
.sidebar-nav-list .nav-link {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4B5563;
    display: block;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
    position: relative;
}
.sidebar-nav-list li a::after,
.sidebar-nav-list .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2463b2;
    transition: width 0.2s ease;
}
.sidebar-nav-list li a:hover,
.sidebar-nav-list .nav-link:hover {
    color: #ffffff;
    font-weight: 600;
    background: linear-gradient(to right, #0070f3 0%, #4da6ff 38%, #ffffff 100%);
    padding-left: 1rem;
    padding-right: 2rem;
    border-radius: 6px;
    box-shadow: none;
}
.sidebar-nav-list li a:hover::after,
.sidebar-nav-list .nav-link:hover::after {
    display: none;
}
.sidebar-nav-list li a.active,
.sidebar-nav-list .nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
    background: linear-gradient(to right, #0070f3 0%, #4da6ff 38%, #ffffff 100%);
    padding-left: 1rem;
    padding-right: 2rem;
    border-radius: 6px;
    box-shadow: none;
}
.sidebar-nav-list li a.active::after,
.sidebar-nav-list .nav-link.active::after {
    display: none;
}
