/* 生态导航专用 CSS —— 无头部无页脚，与主站 zymh.css 完全兼容 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft Yahei", sans-serif;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

:root[data-theme="light"] {
    --bg-main: #fff;
    --text-main: #000;
    --text-gray: #666;
    --border-color: #e8e8e8;
    --node-line: #ddd;
    --node-big: #000;
    --node-small: #444;
    --node-ring: rgba(0, 0, 0, 0.1);
    --glow: rgba(0, 0, 0, 0.2);
    --shadow: rgba(0, 0, 0, 0.15);
    --btn-text: #fff;
}

:root[data-theme="dark"] {
    --bg-main: #0a0a0a;
    --text-main: #fff;
    --text-gray: #aaa;
    --border-color: #2a2a2a;
    --node-line: #333;
    --node-big: #fff;
    --node-small: #ccc;
    --node-ring: rgba(255, 255, 255, 0.08);
    --glow: rgba(255, 255, 255, 0.2);
    --shadow: rgba(255, 255, 255, 0.15);
    --btn-text: #000;
}

:root {
    --radius-lg: 30px;
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.8;
}


/* 生态导航拓扑内容 */

.map-wrapper {
    width: 100%;
    min-height: 100vh;
    padding: 120px 20px 80px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.map-title {
    text-align: center;
    margin-bottom: 30px;
}

.map-title h2 {
    font-size: 30px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--text-main), var(--text-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.map-title p {
    color: var(--text-gray);
    font-size: 15px;
}

#network {
    width: 100%;
    max-width: 1200px;
    height: 620px;
    position: relative;
    display: block;
}

.tooltip {
    position: absolute;
    padding: 6px 14px;
    background: var(--text-main);
    color: var(--btn-text);
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -140%);
    transition: opacity 0.25s ease;
    z-index: 10;
}

.mobile-list {
    width: 100%;
    max-width: 480px;
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 0 10px;
}

.mobile-item {
    display: block;
    padding: 18px 24px;
    border-radius: 16px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.mobile-item:hover {
    transform: translateY(-2px);
    border-color: var(--text-main);
    background: var(--text-main);
    color: var(--btn-text);
}

@media (max-width: 768px) {
    #network {
        display: none;
    }
    .mobile-list {
        display: flex;
    }
}