*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --klein-blue: #0050C8;
    --klein-blue-light: #336FD6;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-gray: #6B7280;
    --border-light: #E5E7EB;
    --bg-page: #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background: var(--bg-page);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* ===== 导航 ===== */
.site-header {
    position: absolute; top: 0; left: 0; width: 100%;
    z-index: 100; padding: 30px 60px;
}
.header-inner {
    max-width: 1400px; margin: 0 auto;
    display: flex; justify-content: flex-end;
    align-items: center;
}
.main-nav ul { list-style: none; display: flex; gap: 40px; align-items: center; }
.main-nav li a {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.95rem; font-weight: 500; color: var(--white);
    position: relative; padding-bottom: 6px; transition: color 0.3s;
}
.main-nav li a::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    width: 0; height: 2px; background: var(--klein-blue);
    transition: all 0.3s ease; transform: translateX(-50%);
}
.main-nav li a:hover::after,
.main-nav li a.active::after { width: 100%; }
.main-nav li a:hover,
.main-nav li a.active { color: #B8D4FF; }

/* 导航图标 */
.nav-icon { display: inline-block; width: 14px; height: 14px; position: relative; }
.icon-home::before {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 10px; height: 8px;
    border: 1.5px solid currentColor; border-radius: 1px;
}
.icon-home::after {
    content: ''; position: absolute; top: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 5px solid transparent; border-right: 5px solid transparent;
    border-bottom: 5px solid currentColor;
}
.icon-category::before,
.icon-category::after {
    content: ''; position: absolute; width: 5px; height: 5px;
    border-radius: 1px; background: currentColor;
}
.icon-category::before { top: 1px; left: 1px; }
.icon-category::after  { top: 1px; right: 1px; }
.icon-category {
    box-shadow: 0 7px 0 0 currentColor, 7px 7px 0 0 currentColor;
    border-radius: 1px;
}
.icon-resource {
    border: 1.5px solid currentColor; border-radius: 2px;
    width: 12px; height: 9px; position: relative; top: 2px;
}
.icon-resource::before {
    content: ''; position: absolute; top: -3px; left: -1px;
    width: 5px; height: 2.5px;
    border: 1.5px solid currentColor; border-bottom: none;
    border-radius: 2px 2px 0 0;
}
.icon-about {
    border: 1.5px solid currentColor; border-radius: 50%;
    width: 12px; height: 12px;
}
.icon-about::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 1.5px; height: 6px; background: currentColor; border-radius: 1px;
}

/* ===== 背景满屏区域 ===== */
.hero-image {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background:

        /* =============================================
           ★ 星点层（保持不变）
           ============================================= */
        radial-gradient(1.5px 1.5px at 73% 38%, rgba(255,255,255,.9), transparent),
        radial-gradient(1px 1px   at 76% 41%, rgba(255,255,255,.7), transparent),
        radial-gradient(1px 1px   at 71% 44%, rgba(255,255,255,.65), transparent),
        radial-gradient(1.2px 1.2px at 69% 39%, rgba(255,255,255,.8), transparent),
        radial-gradient(1px 1px   at 78% 36%, rgba(255,255,255,.55), transparent),
        radial-gradient(1px 1px   at 74% 46%, rgba(255,255,255,.5), transparent),
        radial-gradient(1.5px 1.5px at 67% 42%, rgba(255,255,255,.7), transparent),
        radial-gradient(1px 1px   at 80% 33%, rgba(255,255,255,.5), transparent),
        radial-gradient(1px 1px   at 64% 51%, rgba(255,255,255,.4), transparent),
        radial-gradient(1px 1px   at 82% 28%, rgba(255,255,255,.35), transparent),
        radial-gradient(1.2px 1.2px at 60% 55%, rgba(255,255,255,.3), transparent),
        radial-gradient(1px 1px   at 85% 22%, rgba(255,255,255,.3), transparent),
        radial-gradient(1px 1px   at 18% 30%, rgba(255,255,255,.3), transparent),
        radial-gradient(1px 1px   at 35% 72%, rgba(255,255,255,.25), transparent),
        radial-gradient(1.5px 1.5px at 12% 65%, rgba(255,255,255,.25), transparent),
        radial-gradient(1px 1px   at 45% 18%, rgba(255,255,255,.2), transparent),
        radial-gradient(1px 1px   at 90% 70%, rgba(255,255,255,.2), transparent),
        radial-gradient(1px 1px   at 8% 82%, rgba(255,255,255,.15), transparent),

        /* =============================================
           ★ 星球轮廓弧光
           用两个极远的超大椭圆产生两段交错弧线
           ============================================= */

        /* 弧光 1：外层散射，球体右下半部分的大范围光晕 */
        radial-gradient(
            ellipse 800px 500px at 65% 65%,
            rgba(160, 180, 220, 0.12) 0%,
            rgba(185, 195, 230, 0.08) 20%,
            rgba(200, 210, 240, 0.04) 40%,
            transparent 60%
        ),

        /* 弧光 2：中间层，球体的主光弧 */
        radial-gradient(
            ellipse 700px 400px at 60% 60%,
            rgba(180, 195, 230, 0.18) 0%,
            rgba(200, 210, 240, 0.12) 15%,
            rgba(215, 220, 245, 0.06) 30%,
            transparent 50%
        ),

        /* 弧光 3：最亮边缘线，勾出星球大气层轮廓 */
        radial-gradient(
            ellipse 650px 350px at 58% 58%,
            rgba(220, 225, 248, 0.28) 0%,
            rgba(235, 235, 252, 0.15) 12%,
            rgba(245, 242, 255, 0.05) 24%,
            transparent 40%
        ), 

        /* =============================================
           ★ 银河光带主体（星球轮廓感：亮区集中在左上，向右下渐隐）
           ============================================= */

        /* 最外层——极淡的银河轮廓，宽而模糊 */
        linear-gradient(
            -35deg,
            transparent 0%,
            transparent 15%,
            rgba(160, 175, 210, 0.03) 22%,
            rgba(180, 190, 220, 0.06) 28%,
            rgba(195, 200, 230, 0.08) 32%,
            rgba(210, 210, 240, 0.06) 36%,
            rgba(185, 195, 225, 0.04) 40%,
            rgba(165, 180, 215, 0.02) 44%,
            transparent 50%,
            transparent 100%
        ),

        /* 中层——银河主臂，亮区向左侧偏移 */
        linear-gradient(
            -33deg,
            transparent 0%,
            transparent 18%,
            rgba(175, 185, 220, 0.04) 24%,
            rgba(200, 195, 230, 0.08) 28%,
            rgba(220, 218, 240, 0.12) 31%,
            rgba(230, 225, 245, 0.1) 34%,
            rgba(200, 210, 235, 0.06) 38%,
            rgba(180, 190, 220, 0.03) 42%,
            transparent 48%,
            transparent 100%
        ),

        /* 内层——集中高光条，峰值偏左，制造凸出感 */
        linear-gradient(
            -36deg,
            transparent 0%,
            transparent 20%,
            rgba(210, 215, 240, 0.06) 25%,
            rgba(235, 230, 250, 0.14) 28%,
            rgba(245, 242, 255, 0.2) 30%,    /* 峰值提前到30%，凸出感 */
            rgba(235, 235, 250, 0.12) 33%,
            rgba(215, 220, 240, 0.06) 37%,
            transparent 43%,
            transparent 100%
        ),

        /* =============================================
           ★ 最底层：深邃蓝黑渐变基底
           ============================================= */
        linear-gradient(155deg, #010d1f 0%, #00102a 40%, #000a18 100%)
        ;

    background-size: 100% 100%;
    background-position: 0 0;
    background-repeat: no-repeat;
}

/* 左上角高光 */
.hero-image::before {
    content: '';
    position: absolute;
    top: -10%; left: -10%;
    width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(0,80,200,0.25) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
}

/* 星空容器 */
.stars-container {
    position: absolute; inset: 0; z-index: 3; pointer-events: none;
}
.star {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
    animation: starBreathe 3s infinite ease-in-out;
}
@keyframes starBreathe {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); box-shadow: 0 0 12px rgba(255, 255, 255, 0.6); }
}

/* 流星容器 */
.shooting-stars {
    position: absolute; inset: 0; z-index: 4; pointer-events: none;
}
.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(255,255,255,0.8);
    animation: shoot linear infinite;
}
.shooting-star::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;                     /* 尾巴在星星左侧 */
    width: 120px;                /* 加长尾巴 */
    height: 1px;
    background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
    transform: translate(-100%, -50%); /* 让尾巴从星星左边缘开始向左延伸 */
}
@keyframes shoot {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(var(--angle));
    }
    80% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translate(400px, 200px) rotate(var(--angle)); /* 移动距离控制 */
    }
}

/* 标语（左对齐，去底板） */
.hero-slogan {
    position: absolute;
    top: 45%;
    left: 60px;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 700px;
    color: var(--white);
}
.hero-line-1, .hero-line-2 {
    font-size: 2.8rem; font-weight: 700; letter-spacing: 4px;
    color: var(--white);
    text-shadow: 0 0 20px rgba(0,80,200,0.5);
    line-height: 1.3; margin-bottom: 10px;
}
.hero-line-3 {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.hero-line-3::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--klein-blue);
    flex-shrink: 0;
}

/* 格言（右下角） */
.hero-motto {
    position: absolute;
    bottom: 30px; right: 60px;
    z-index: 10;
    max-width: 420px;
    text-align: right;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-size: 0.85rem; line-height: 1.9; letter-spacing: 1px;
    border-right: 1px solid rgba(0,80,200,0.5);
    padding-right: 18px;
    pointer-events: none;
}
.hero-motto p { margin: 0; }

/* ===== 悬浮标签卡（原系统篇等） ===== */
.hero-tabs {
    position: absolute;
    bottom: 40px;
    left: 60px;                     /* 与标语左对齐 */
    z-index: 15;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.tab-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 40, 80, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 10px 22px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.tab-card:hover {
    background: rgba(0,80,200,0.3);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.tab-icon {
    display: inline-block;
    width: 20px; height: 20px;
    transform: scale(0.8);
}

/* 卡片图标复用之前的设计，稍作调整 */
.tab-icon.icon-system { background: none; border: 2px solid currentColor; transform: rotate(45deg) scale(0.6); border-radius: 2px; }
.tab-icon.icon-arch { background: currentColor; height: 2px; position: relative; }
.tab-icon.icon-arch::before, .tab-icon.icon-arch::after { content: ''; position: absolute; height: 2px; background: currentColor; }
.tab-icon.icon-arch::before { width: 14px; top: -5px; left: 0; }
.tab-icon.icon-arch::after { width: 18px; bottom: -5px; left: 0; }
.tab-icon.icon-protocol { border: 1px solid currentColor; border-radius: 50%; width: 18px; height: 18px; position: relative; }
.tab-icon.icon-protocol::before { content: ''; position: absolute; top: 50%; left: 2px; right: 2px; height: 1px; background: currentColor; }
.tab-icon.icon-scada { border: 1px solid currentColor; border-bottom: none; border-radius: 10px 10px 0 0; width: 18px; height: 10px; position: relative; }
.tab-icon.icon-scada::after { content: ''; position: absolute; bottom: -2px; left: 50%; width: 1px; height: 8px; background: currentColor; transform: translateX(-50%); }
  
/* ===== 正文双栏区域 ===== */
.content {
    background: var(--white);
    position: relative; z-index: 10;
    padding: 60px 0 80px;
}
.content-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    gap: 40px;
}
.main-content {
    flex: 3;                /* 占75% */
    min-height: 400px;       /* 临时高度，未来由文章填充 */
}
.sidebar-profile {
    flex: 1;                /* 占25% */
    min-width: 220px;
    border-left: 1px solid var(--border-light);
    padding-left: 30px;
}
.profile-card {
    background: #F9FAFB;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.profile-avatar {
    width: 80px; height: 80px;
    margin: 0 auto 15px;
    background: var(--klein-blue);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.2rem; font-weight: 700;
}
.profile-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 8px;
}

/* ===== 页脚（深色统一） ===== */
.site-footer {
    background: linear-gradient(135deg, #001A40 0%, #000D1F 100%);
    color: var(--white);
    font-size: 12px; padding: 0 40px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-inner {
    width: 100%; max-width: 1400px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap;
}
.footer-copy { flex: 0 0 auto; white-space: nowrap; }
.footer-beian { flex: 1 0 auto; text-align: center; display: flex; justify-content: center; align-items: center; gap: 10px; }
.footer-right { flex: 0 0 80px; text-align: right; }
.beian-item { display: inline-flex; align-items: center; gap: 4px; }
.beian-item a { color: var(--white); transition: opacity 0.3s; }
.beian-item a:hover { opacity: 0.8; }
.beian-icon { width: 14px; height: 14px; background: rgba(255,255,255,0.2); border-radius: 50%; padding: 2px; vertical-align: middle; }
.beian-divider { color: rgba(255,255,255,0.5); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .content-inner { flex-direction: column; }
    .sidebar-profile {
        border-left: none;
        border-top: 1px solid var(--border-light);
        padding-left: 0;
        padding-top: 30px;
        margin-top: 30px;
        min-width: auto;
    }
}

@media (max-width: 900px) {
    .site-header { padding: 20px 30px; }
    .main-nav ul { gap: 20px; }
    .hero-slogan { left: 30px; }
    .hero-line-1, .hero-line-2 { font-size: 2.2rem; }
    .hero-motto { right: 30px; font-size: 0.78rem; }
    .hero-tabs { left: 30px; bottom: 30px; }
}

@media (max-width: 768px) {
    .site-footer { height: auto; padding: 15px 20px; }
    .footer-inner { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
    .footer-copy { white-space: normal; }
    .footer-beian { flex-wrap: wrap; justify-content: center; gap: 4px; }
    .footer-right { display: none; }
}

@media (max-width: 600px) {
    .site-header { padding: 20px 20px; }
    .main-nav ul { gap: 12px; }
    .nav-icon { display: none; }
    .hero-slogan { left: 20px; top: 35%; }
    .hero-line-1, .hero-line-2 { font-size: 1.8rem; }
    .hero-line-3 { font-size: 0.85rem; }
    .hero-motto {
        right: 12px;
        bottom: 20px;
        font-size: 0.6rem;          /* 稍微缩小 */
        max-width: 300px;           /* 放宽宽度 */
        padding-right: 8px;         /* 收窄内边距 */
        line-height: 1.7;
        letter-spacing: 0.5px;
    }
   .hero-tabs {
        position: absolute;
        bottom: 20px;
        left: 12px;
        right: auto;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;     /* 左对齐 */
    }
    .tab-card {
        padding: 6px 14px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    .shooting-stars { display: none; } /* 手机端隐藏流星，节省性能 */
} 

/* 右下角星球装饰 */
.planet-decoration {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;               /* 占屏幕宽度的 40%，你根据图片效果调 */
    max-width: 600px;          /* 最大宽度，防止大屏上太大 */
    height: auto;              /* 保持比例 */
    z-index: 20;               /* 放在所有背景元素之上，但别遮住按钮和文字 */
    pointer-events: none;      /* 不阻挡按钮和文字的点击 */
    user-select: none;         /* 不可选中 */
    opacity: 0.9;              /* 微调透明度，如果图片本身已半透明可设为 1 */
}


/* 手机端：3/4 处拉到底 */
@media (max-width: 600px) {
    .planet-decoration {
        height: 80vh;        
        opacity: 0.95;         /* 半透明融入背景 */ 
    }
}
