/* ============================================================
   🚀 极奇策 RPA - 页面布局与业务模块库 (Layout CSS)
   包含：详情页骨架、排版、交互式拓扑画布引擎
   ============================================================ */

/* ============================================================
   1. 页面骨架与容器 (Container & Skeleton)
   ============================================================ */
.detail-container { 
    max-width: 1200px; 
    margin: 0 auto; 
}

.detail-container-xl { 
    max-width: 1600px; 
    margin: 0 auto; 
}

.detail-card {
    border-radius: 24px;
    padding: 40px 48px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .detail-card { 
        padding: 24px 20px; 
    }
}

/* ============================================================
   2. 头部信息区 (Header & Title)
   ============================================================ */
.detail-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.detail-title-group { 
    flex: 1; 
    min-width: 200px; 
}

.detail-title {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* ============================================================
   3. 元信息与版本条 (Meta Data)
   ============================================================ */
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    font-size: 14px;
    color: #64748B;
    padding: 12px 0 16px 0;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 20px;
}

.detail-meta .item { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
}

.detail-meta .item i { 
    width: 16px; 
    height: 16px; 
}

.detail-meta .author { 
    font-weight: 600; 
    color: #1e293b; 
}

.version-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.version-bar .label { 
    font-size: 14px; 
    font-weight: 600; 
    color: #1e293b; 
}

.version-bar select {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    background: white;
    color: #1e293b;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.version-bar select:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ============================================================
   4. 正文排版与组件 (Typography & Components)
   ============================================================ */
.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i { 
    color: #2563EB; 
    width: 20px; 
    height: 20px; 
}

.section-title:first-of-type { 
    margin-top: 0; 
}

.description {
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 8px;
    white-space: pre-wrap;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    margin-top: 8px;
}

.btn-back:hover { 
    background: #f1f5f9; 
    border-color: #94a3b8; 
}

.btn-back i { 
    width: 16px; 
    height: 16px; 
}

/* 导航项动态高亮 */
.nav-item-active { 
    color: #2563EB !important; 
    border-color: #2563EB !important; 
}

/* ============================================================
   5. 节点列表 (SEO Friendly Grid)
   ============================================================ */
.node-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

@media (max-width: 640px) { 
    .node-list { grid-template-columns: 1fr; } 
}

.node-list li {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: border-color 0.2s;
}

.node-list li:hover { 
    border-color: #2563EB; 
}

.node-list .node-name { 
    font-weight: 600; 
    color: #1e293b; 
    font-size: 14px; 
}

.node-list .node-desc { 
    font-size: 13px; 
    color: #64748B; 
    line-height: 1.5; 
}

/* ============================================================
   6. 交互式拓扑画布引擎 (Interactive Topology Canvas)
   ============================================================ */
.workflow-interactive-wrapper {
    position: relative;
    display: flex;
    height: 600px;
    border-radius: 16px;
    border: 1px solid #1e293b;
    margin-bottom: 32px;
    background: #090d16;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(37, 99, 235, 0.1);
    overflow: hidden;
}

.workflow-interactive-box {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.workflow-interactive-box:active { 
    cursor: grabbing; 
}

/* 移动端触控遮罩 */
.mobile-touch-hint {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 30; /* 防止遮挡吸顶菜单 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 15px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-touch-hint.show { 
    opacity: 1; 
}

.mobile-touch-hint i { 
    margin-bottom: 8px; 
    width: 32px; 
    height: 32px; 
    color: #818cf8; 
}

/* 科技感网格背景 */
.tech-grid-bg {
    position: absolute;
    inset: -300%;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    transform-origin: 0 0;
    will-change: transform;
}

.canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transform-origin: 0 0;
    will-change: transform;
}

/* 节点方块 */
.tech-node {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: 8px;
    padding: 10px 16px;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2), inset 0 0 10px rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.tech-node:hover {
    border-color: #38bdf8;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.5), inset 0 0 15px rgba(56, 189, 248, 0.2);
    z-index: 15;
}

.tech-node i { 
    color: #60a5fa; 
    width: 14px; 
    height: 14px; 
}

.tech-node.highlighted {
    border-color: #c084fc;
    box-shadow: 0 0 40px rgba(192, 132, 252, 0.8), inset 0 0 20px rgba(192, 132, 252, 0.4);
    transform: scale(1.1);
    z-index: 20;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 节点端口 */
.port {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #0f172a;
    border: 2px solid #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 8px #38bdf8;
}

.port-left { left: -5px; }
.port-right { right: -5px; }

/* 节点连线与动画 */
.flow-svg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.flow-line {
    fill: none;
    stroke: url(#cyan-purple-grad);
    stroke-width: 2.5;
    stroke-dasharray: 10 8;
    animation: flowAnim 1.5s linear infinite;
}

@keyframes flowAnim { 
    to { stroke-dashoffset: -36; } 
}

/* 侧边大纲栏 */
.topology-sidebar {
    width: 260px;
    background: rgba(15, 23, 42, 0.85);
    border-left: 1px solid #1e293b;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    z-index: 30;
}

@media (max-width: 768px) {
    .topology-sidebar { display: none !important; }
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-node-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}

.sidebar-node-list::-webkit-scrollbar { 
    width: 4px; 
}

.sidebar-node-list::-webkit-scrollbar-thumb { 
    background: #475569; 
    border-radius: 4px; 
}

.sidebar-node-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    color: #cbd5e1;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.sidebar-node-item:hover { 
    background: rgba(99, 102, 241, 0.15); 
    color: #fff; 
}

.sidebar-node-item i { 
    width: 16px; 
    height: 16px; 
}

/* 画布控制按钮 */
.canvas-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 30;
    display: flex;
    gap: 8px;
}

.ctrl-btn {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #cbd5e1;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}

.ctrl-btn:hover { 
    background: #6366f1; 
    color: #fff; 
    border-color: #818cf8; 
}

.ctrl-btn i { 
    width: 16px; 
    height: 16px; 
}

/* ============================================================
   7. 更新日志列表 (Changelog)
   ============================================================ */
.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.changelog-item {
    border-left: 3px solid rgba(37, 99, 235, 0.2);
    padding-left: 20px;
    position: relative;
}

.changelog-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.changelog-item .ver {
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.changelog-item .log-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin-top: 8px;
    white-space: pre-wrap;
    background: rgba(248, 250, 252, 0.5);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.badge-latest {
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-left: 8px;
}


/* 🚀 吸顶时的紧凑模式：保留毛玻璃通透感，极致压缩所有的内外边距 */
#stickyHeader.shadow-md {
	padding-top: 10px !important;
	padding-bottom: 0px !important;
}
#stickyHeader.shadow-md .detail-header {
	margin-bottom: 0px !important;
	transition: margin 0.3s ease;
}
#stickyHeader.shadow-md .detail-title {
	font-size: 22px !important; 
	transition: font-size 0.3s ease;
}
#stickyHeader.shadow-md .nav-item {
	padding-top: 10px !important; 
	padding-bottom: 10px !important;
	transition: padding 0.3s ease;
}


/* ============================================================
   8. 个性化模块：软件发布/下载页专属 (Download Page)
   ============================================================ */
/* SEO 视觉隐藏技术：专供爬虫读取长尾词，肉眼不可见 */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* 巨图背景轮播动效 (Ken Burns 沉浸式虚化渐变) */
.hero-bg-slider {
    position: absolute;
    inset: -5%; /* 稍微外扩，防止缓慢缩放时漏出黑边 */
    width: 110%;
    height: 110%;
    z-index: 0;
    pointer-events: none;
}
.hero-bg-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: blur(4px); 
    animation: heroFade 12s infinite linear;
    will-change: transform, opacity;
}
.hero-bg-slider img:nth-child(1) { animation-delay: 0s; }
.hero-bg-slider img:nth-child(2) { animation-delay: 4s; }
.hero-bg-slider img:nth-child(3) { animation-delay: 8s; }

@keyframes heroFade {
    0% { opacity: 0; transform: scale(1.05); }
    10% { opacity: 1; transform: scale(1); }
    33% { opacity: 1; transform: scale(1); }
    43% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.05); }
}

/* 版本更新时间轴专属样式 */
.timeline-dot {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}



/* ============================================================
   8. 个性化模块：全局右侧悬浮侧边栏 (Floating Sidebar)
   ============================================================ */
/* 核心拦截：直接隐藏原生的智能客服悬浮圆球，统一交由右侧新菜单接管 */
#jqc-launcher { display: none !important; }

/* 整体悬浮框大厂质感：流光毛玻璃胶囊 */
.jqc-sidebar-wrapper {
    position: fixed;
    right: 16px;
    bottom: 25%;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 100px;
    padding: 6px;
    pointer-events: auto;
}

/* 📱 移动端小屏优化：强行隐藏右侧悬浮菜单，保持手机端阅读体验清爽无遮挡 */
@media (max-width: 768px) {
    .jqc-sidebar-wrapper {
        display: none !important;
    }
}

/* 独立抽离背景层，包裹光晕并执行 overflow: hidden，绝不影响外层弹窗 */
.jqc-sidebar-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 8px 30px -6px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
    border-radius: 100px;
    overflow: hidden;
    pointer-events: none;
}

/* 🌟 移动的科技流光特效 (挂载到独立背景层) */
.jqc-sidebar-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(59,130,246,0.15) 25%, rgba(16,185,129,0.12) 50%, rgba(59,130,246,0.15) 75%, transparent 100%);
    animation: spinGlow 6s linear infinite;
}
@keyframes spinGlow { 100% { transform: rotate(360deg); } }

/* 每一项侧边栏菜单：极尽窄短 */
.jqc-side-item {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #334155;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-bottom: 3px;
}
.jqc-side-item:last-child { margin-bottom: 0; }

.jqc-side-item:hover {
    background-color: #f1f5f9;
    color: #2563eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: scale(1.05);
}

.jqc-side-item.hover-indigo:hover { color: #4f46e5; }
.jqc-side-item.hover-emerald:hover { color: #10b981; }
.jqc-side-item.hover-sky:hover { color: #0ea5e9; }
.jqc-side-item.hover-rose:hover { color: #f43f5e; }

/* 图标和文字压缩占比 */
.jqc-side-item i { margin-bottom: 1px; }
.jqc-side-item span {
    font-size: 13px;
    font-weight: 600;
    transform: scale(0.95);
    white-space: nowrap;
    letter-spacing: 0.2px;
}

/* 悬浮面板交互动画 */
.jqc-side-popup {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(8px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    padding-right: 16px; 
}
.jqc-side-item:hover .jqc-side-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0) scale(1);
    pointer-events: auto;
}

/* 返回顶部专属平滑折叠动画 */
#jqc-back-to-top {
    height: 0;
    opacity: 0;
    margin-bottom: 0;
    overflow: hidden;
    background-color: transparent;
}
#jqc-back-to-top:hover {
    background-color: #1e293b;
    color: #ffffff;
}
#jqc-back-to-top.show {
    height: 46px;
    opacity: 1;
    margin-top: 3px;
}


/* 验证码标记点样式独立定义 */
.nav-click-marker {
    position: absolute; width: 22px; height: 22px; background: #2563EB; color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: bold; transform: translate(-50%, -50%);
    box-shadow: 0 4px 6px rgba(37,99,235,0.3); pointer-events: none;
    animation: markerPop 0.2s ease; border: 2px solid white;
}






