/* Refined Minimalist Grid - Exquisite Insight Theme */

:root {
    --tech-accent: #ef4444;
    --tech-border: #f1f5f9;
    --tech-grid-line: rgba(226, 232, 240, 0.4);
    --tech-text-main: #0f172a;
    --tech-text-secondary: #475569;
    --tech-text-muted: #94a3b8;
}

body[data-page="insights"] {
    background-color: #ffffff;
    background-image: 
        /* 极其细微的精细网格线 - 30px 模数 */
        linear-gradient(var(--tech-grid-line) 0.5px, transparent 0.5px),
        linear-gradient(90deg, var(--tech-grid-line) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    background-position: center center;
    color: var(--tech-text-main);
}

/* Page Hero - Fixed Height Compact Style */
.page-hero {
    height: 240px;
    padding: 0;
    background: transparent;
    position: relative;
    border-bottom: 1px solid var(--tech-border);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px; /* 增加间距 */
}

.hero-text {
    z-index: 10;
    position: relative;
    padding: 40px 0;
    margin-left: 60px; /* 文字向右移动 */
}

/* 文字背景：白色径向渐变，突出文字 */
.hero-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100px;
    width: 600px;
    height: 400px;
    background: radial-gradient(circle at center, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 40%, rgba(255,255,255,0) 70%);
    transform: translateY(-50%);
    z-index: -1;
    pointer-events: none;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--tech-text-main);
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--tech-text-secondary);
    max-width: 500px;
}

.hero-visual-wrapper {
    display: flex;
    justify-content: flex-start; /* 图标靠近文字 */
    align-items: center;
    height: 100%;
}

.hero-svg-anim {
    max-width: 420px;
    height: 200px;
    opacity: 1;
}

/* 思想传导：接收端脉冲 */
@keyframes receiverPulse {
    0% { transform: scale(0.8); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(0.8); opacity: 0.3; }
}

@keyframes transmissionLine {
    0% { stroke-dashoffset: 200; opacity: 0.2; }
    50% { opacity: 0.8; }
    100% { stroke-dashoffset: 0; opacity: 0.2; }
}

/* 远见之眼：呼吸感动画 */
@keyframes visionBreathing {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px #ef4444); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 12px #ef4444); }
}

@keyframes compassRotate {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(90deg); }
    40% { transform: rotate(90deg); }
    60% { transform: rotate(180deg); }
    80% { transform: rotate(270deg); }
    100% { transform: rotate(360deg); }
}

@keyframes logicPlateFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.hero-svg-anim .receiver-node {
    transform-origin: 460px 100px;
    animation: receiverPulse 3s infinite ease-in-out;
}

.hero-svg-anim .transmission-path {
    stroke-dasharray: 40 160;
    animation: transmissionLine 4s infinite linear;
}

.hero-svg-anim .vision-core {
    transform-origin: 250px 100px;
    animation: visionBreathing 4s infinite ease-in-out;
}

.hero-svg-anim .compass-ring {
    transform-origin: 250px 100px;
    animation: compassRotate 15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.hero-svg-anim .logic-plate {
    animation: logicPlateFloat 4s infinite ease-in-out;
}

/* Insight Stream Layout */
.insights-lab-section {
    padding: 60px 0 120px;
}

.stream-container {
    max-width: 1000px;
    margin: 0 auto;
}

.category-block {
    margin-bottom: 80px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--tech-text-main);
    white-space: nowrap;
}

.category-line {
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(to right, var(--tech-accent), transparent);
    opacity: 0.3;
}

/* Blueprint Insight Stream - Side by Side Layout */
.stream-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
}

.category-block {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--tech-text-main);
    white-space: nowrap;
}

.category-line {
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(to right, var(--tech-accent), transparent);
    opacity: 0.3;
}

/* Static Blueprint Insight Cards */
.insight-card {
    background: #ffffff;
    border: 1px solid var(--tech-border);
    margin-bottom: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    /* 移除所有悬浮变换和阴影 */
}

/* 背景点阵纹理 - 静态可见 */
.insight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--tech-grid-line) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.2;
    pointer-events: none;
}

.card-content {
    position: relative;
    z-index: 1;
}

/* 标题蓝图框架 - 强化静态感 */
.title-blueprint {
    display: block; /* 占据整行，适合左右布局 */
    position: relative;
}

.blueprint-frame {
    padding: 24px;
    border: 1px solid rgba(15, 23, 42, 0.2); /* 默认边框加深 */
    background: rgba(255, 255, 255, 0.9);
    position: relative;
}

/* 类别标签 */
.frame-tag {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #ef4444; /* 改为红色，更醒目 */
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    padding: 2px 8px;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--tech-text-main);
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* 精密角标 - 静态加深 */
.corner-mark {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid var(--tech-accent);
    opacity: 0.8; /* 默认高透明度 */
}

.top-left { top: -6px; left: -6px; border-right: none; border-bottom: none; }
.top-right { top: -6px; right: -6px; border-left: none; border-bottom: none; }
.bottom-right { bottom: -6px; right: -6px; border-left: none; border-top: none; }

/* 静态底部装饰线 */
.blueprint-frame::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--tech-accent);
}

/* Tablet and Small Screen Support */
@media (max-width: 1100px) {
    .page-hero { 
        height: auto; 
        padding: 60px 0 40px; /* 增加上下间距，使堆叠布局更舒展 */
    }

    .page-hero-grid {
        grid-template-columns: 1fr; /* 切换为单列堆叠布局：上文下图 */
        gap: 40px;
        text-align: center;
    }
    
    .hero-text {
        margin-left: 0;
        padding: 0;
    }

    .hero-text::before {
        left: 50%;
        transform: translate(-50%, -50%);
        width: 120%;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .page-hero p {
        margin: 0 auto;
    }

    .hero-visual-wrapper {
        justify-content: center;
        height: 200px;
    }

    .hero-svg-anim {
        max-width: 100%;
        height: 100%;
    }
}

@media (max-width: 992px) {
    .stream-container {
        grid-template-columns: 1fr 1fr; /* 内容区域保持双列 */
        gap: 30px;
    }
    
    .insight-card {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .stream-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page-hero { 
        padding: 40px 0 20px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .insights-lab-section {
        padding: 20px 0 60px;
    }

    .insight-card {
        padding: 24px 20px;
    }

    .blueprint-frame {
        padding: 20px;
    }

    .card-title {
        font-size: 1.15rem;
    }

    .category-header {
        margin-bottom: 24px;
    }
}
