﻿@charset "utf-8";

      /* ==================== Hero区域左上角Logo ==================== */
        .brand-logo {
            z-index: 999;
            width: 150px;
            height: auto;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
            cursor: pointer;
            position: absolute;
            top: 40px;
            left: 40px;
        }

        .brand-logo:hover {
            transform: scale(1.05);
        }

        .brand-logo img {
            width: 100%;
            height: auto;
            display: block;
        }

      /* ==================== 悬浮导航条（电脑端） ==================== */
        .floating-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 997;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px 40px;
            background: rgba(0, 52, 41, 0.75);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
            transform: translateY(-100%);
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                        background 0.4s ease,
                        box-shadow 0.4s ease;
            pointer-events: none;
        }

        .floating-nav.visible {
            transform: translateY(0);
            pointer-events: auto;
        }

        .floating-nav.scrolled {
            background: rgba(0, 52, 41, 0.92);
            box-shadow: 0 4px 40px rgba(0, 0, 0, 0.25);
            border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        }

        .floating-nav-inner {
            display: flex;
            align-items: center;
            gap: 6px;
            max-width: 1400px;
            width: 100%;
            justify-content: center;
        }

        /* 电脑端：两行容器穿透，子元素直接参与 inner flex */
        .floating-nav-row-top {
            display: contents;
        }

        .floating-nav-row-bottom {
            display: contents;
        }

        .floating-nav-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-right: auto;
            text-decoration: none;
            opacity: 0;
            transform: translateX(-20px);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
            pointer-events: none;
            padding: 6px 16px 6px 8px;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.07);
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
                        background 0.3s ease,
                        border-color 0.3s ease;
        }

        .floating-nav-logo:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .floating-nav.visible .floating-nav-logo {
            opacity: 1;
            transform: translateX(0);
            pointer-events: auto;
        }

        /* Logo SVG图标 */
        .floating-nav-logo-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 28px;
            flex-shrink: 0;
            color: #4ade80;
            transition: color 0.3s ease;
        }

        .floating-nav-logo:hover .floating-nav-logo-icon {
            color: #6aee9a;
        }

        .floating-nav-logo-icon svg {
            width: 100%;
            height: 100%;
        }

        /* Logo文字 */
        .floating-nav-logo-text {
            font-size: 1.3rem;
            font-weight: 700;
            color: #fff;
            letter-spacing: 0.1em;
            line-height: 1;
        }

        /* 22年徽章 */
        .floating-nav-logo-badge {
            display: inline-flex;
            align-items: center;
            padding: 3px 9px;
            font-size: 0.7rem;
            font-weight: 700;
            color: #003429;
            background: linear-gradient(135deg, #4ade80, #22d3ee);
            border-radius: 6px;
            letter-spacing: 0.05em;
            line-height: 1.4;
            box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
        }

        .floating-nav-logo img {
            height: 28px;
            width: auto;
            filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
        }

        .floating-nav-links {
            display: flex;
            align-items: center;
            gap: 4px;
            list-style: none;
            order: 5;
        }

        .floating-nav-links li {
            opacity: 0;
            transform: translateY(-15px);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .floating-nav.visible .floating-nav-links li {
            opacity: 1;
            transform: translateY(0);
        }

        .floating-nav.visible .floating-nav-links li:nth-child(1) { transition-delay: 0.05s; }
        .floating-nav.visible .floating-nav-links li:nth-child(2) { transition-delay: 0.1s; }
        .floating-nav.visible .floating-nav-links li:nth-child(3) { transition-delay: 0.15s; }
        .floating-nav.visible .floating-nav-links li:nth-child(4) { transition-delay: 0.2s; }
        .floating-nav.visible .floating-nav-links li:nth-child(5) { transition-delay: 0.25s; }

        .floating-nav-links a {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 10px 20px;
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            border-radius: 10px;
            letter-spacing: 0.3px;
            position: relative;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        .floating-nav-links a::after {
            content: '';
            position: absolute;
            bottom: 4px;
            left: 50%;
            transform: translateX(-50%) scaleX(0);
            width: 60%;
            height: 2px;
            background: linear-gradient(90deg, #4ade80, #22d3ee);
            border-radius: 2px;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .floating-nav-links a:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.08);
        }

        .floating-nav-links a:hover::after {
            transform: translateX(-50%) scaleX(1);
        }

        /* 当前激活项 */
        .floating-nav-links a.active {
            color: #4ade80;
            background: rgba(74, 222, 128, 0.1);
        }

        .floating-nav-links a.active::after {
            transform: translateX(-50%) scaleX(1);
            background: linear-gradient(90deg, #4ade80, #4ade80);
        }

        /* 导航项上的小图标点缀 */
        .floating-nav-dot {
            width: 5px;
            height: 5px;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            flex-shrink: 0;
        }

        /* 右侧联系按钮 */
        .floating-nav-cta {
            margin-left: auto;
            opacity: 0;
            transform: translateX(20px);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
            pointer-events: none;
            display: flex;
            align-items: center;
            gap: 10px;
            order: 10;
        }

        .floating-nav.visible .floating-nav-cta {
            opacity: 1;
            transform: translateX(0);
            pointer-events: auto;
        }

        .floating-nav-cta-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 18px;
            background: linear-gradient(135deg, #4ade80, #22c55e);
            color: #003429;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            border-radius: 20px;
            transition: all 0.3s ease;
            white-space: nowrap;
            box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
        }

        .floating-nav-cta-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
            background: linear-gradient(135deg, #6aee9a, #34d36e);
        }

        /* ==================== 移动端悬浮导航适配 ==================== */
        @media (max-width: 768px) {
            .floating-nav {
                padding: 8px 12px;
                background: rgba(0, 52, 41, 0.92);
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            }

            /* 移动端 inner 改为纵向排列 */
            .floating-nav-inner {
                flex-direction: column;
                gap: 6px;
                max-width: 100%;
            }

            /* === 第一行：Logo + CTA === */
            .floating-nav-logo {
                margin-right: 0;
                gap: 6px;
                padding: 5px 10px 5px 6px;
                border-radius: 8px;
                background: rgba(255, 255, 255, 0.06);
                border: 1px solid rgba(255, 255, 255, 0.08);
            }

            .floating-nav-logo-icon {
                width: 34px;
                height: 22px;
            }

            .floating-nav-logo-text {
                font-size: 1rem;
                letter-spacing: 0.05em;
            }

            .floating-nav-logo-badge {
                display: inline-flex;
                font-size: 0.65rem;
                padding: 2px 7px;
            }

            .floating-nav-cta {
                display: flex !important;
                margin-left: 0;
            }

            .floating-nav-cta-btn {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                font-size: 0.8rem;
                padding: 5px 14px;
                border-radius: 8px;
                background: rgba(255, 255, 255, 0.06);
                border: 1px solid rgba(255, 255, 255, 0.08);
                color: #4ade80;
                font-weight: 600;
                box-shadow: none;
                letter-spacing: 0.05em;
                line-height: 1.6;
            }

            /* 第一行容器：Logo + CTA 居中靠拢 */
            .floating-nav-row-top {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 12px;
                width: 100%;
            }

            /* 取消 Logo 的 margin-right，CTA 也取消 margin-left */
            .floating-nav-row-top .floating-nav-logo {
                margin-right: 0;
            }

            .floating-nav-row-top .floating-nav-cta {
                margin-left: 0;
            }

            /* === 第二行：导航链接 === */
            .floating-nav-row-bottom {
                display: flex;
                align-items: center;
                width: 100%;
                justify-content: center;
            }

            .floating-nav-links {
                gap: 8px;
                justify-content: center;
                flex-wrap: nowrap;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            .floating-nav-links::-webkit-scrollbar {
                display: none;
            }

            .floating-nav-links {
                -ms-overflow-style: none;
                scrollbar-width: none;
            }

            .floating-nav-dot {
                display: none;
            }

            .floating-nav-links a {
                padding: 8px 10px;
                font-size: 0.85rem;
                border-radius: 6px;
            }

            /* 移动端导航滚动显示（与电脑端逻辑一致，由JS控制） */

            /* Hero左上角Logo缩小并往左上移动 */
            .brand-logo {
                width: 100px;
                top: 25px;
                left: 15px;
            }
        }

        /* 小屏手机进一步压缩 */
        @media (max-width: 400px) {
            .floating-nav {
                padding: 6px 8px;
            }

            .floating-nav-inner {
                gap: 4px;
            }

            .floating-nav-logo-icon {
                width: 28px;
                height: 18px;
            }

            .floating-nav-logo-text {
                font-size: 0.85rem;
            }

            .floating-nav-logo {
                gap: 4px;
                padding: 4px 8px 4px 4px;
            }

            .floating-nav-logo-badge {
                font-size: 0.6rem;
                padding: 2px 5px;
            }

            .floating-nav-cta-btn {
                font-size: 0.72rem;
                padding: 4px 10px;
                border-radius: 8px;
                background: rgba(255, 255, 255, 0.06);
                border: 1px solid rgba(255, 255, 255, 0.08);
                color: #4ade80;
                font-weight: 600;
                box-shadow: none;
                line-height: 1.6;
            }

            .floating-nav-links a {
                padding: 7px 8px;
                font-size: 0.75rem;
            }
        }

