
a:link,
a:visited,
a:active {
  text-decoration: none;
  cursor: pointer;
}
    /* Navbar */
    

     .navbar {
       position: fixed;      /* 固定定位 */
  top: 0;               /* 固定在顶部 */
  left: 0;              /* 从左侧开始 */
  right: 0;             /* 延伸到右侧 */
  width: 100%;          /* 全宽 */
  z-index: 1000;  
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
      background-color: #0f172a;
      color: #f1f5f9;
   
        }

    .navbar-container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 56px;
    }

    /* Logo */
    .logo {
      display: flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
    }

    .logo-icon {
      flex-shrink: 0;
      filter: drop-shadow(0 4px 8px rgba(14, 165, 233, 0.4));
      transition: transform 0.3s ease, filter 0.3s ease;
    }

    .logo:hover .logo-icon {
      transform: scale(1.08);
      filter: drop-shadow(0 6px 12px rgba(14, 165, 233, 0.5));
    }

    /* 趋势线动画 */
    @keyframes drawLine {
      0% {
        stroke-dashoffset: 30;
      }
      100% {
        stroke-dashoffset: 0;
      }
    }

    @keyframes pulseGlow {
      0%, 100% {
        opacity: 0.6;
        r: 3;
      }
      50% {
        opacity: 1;
        r: 4;
      }
    }

    @keyframes extendPredict {
      0% {
        stroke-dashoffset: 10;
        opacity: 0;
      }
      100% {
        stroke-dashoffset: 0;
        opacity: 1;
      }
    }

    .logo-icon .trend-line {
      stroke-dasharray: 30;
      stroke-dashoffset: 30;
    }

    .logo-icon .predict-line {
      stroke-dasharray: 6;
      stroke-dashoffset: 6;
      opacity: 0;
    }

    .logo-icon .predict-dot {
      opacity: 0;
    }

    .logo:hover .trend-line {
      animation: drawLine 0.6s ease forwards;
    }

    .logo:hover .predict-line {
      animation: extendPredict 0.4s ease 0.5s forwards;
    }

    .logo:hover .predict-dot {
      animation: pulseGlow 1s ease 0.7s infinite;
    }

    .logo-text {
      font-size: 22px;
      color: hsl(var(--foreground));
      font-weight: 600;
      letter-spacing: 0.5px;
    }
    .logo-text:hover {
      color: hsl(var(--primary));
    }

    /* 桌面端导航链接 */
    .nav-links {
      display: flex;
      align-items: center;
      gap: 32px;
      list-style: none;
    }

    .nav-links a {
      
      text-decoration: none;
      font-size: 20px;
      color: hsl(var(--foreground));
      transition: color 0.2s ease;
    }

    .nav-links a:hover {
   
      color: hsl(var(--primary));
    }

    /* 桌面端右侧操作区 */
    .nav-actions {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    /* 搜索框 */
    .search-box {
      position: relative;
    }

    .search-box svg {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      width: 16px;
      height: 16px;
      color: #94a3b8;
    }

    .search-input {
      width: 192px;
      height: 36px;
      padding: 0 12px 0 36px;
      background-color: #0f172a;
      border: 1px solid rgba(148, 163, 184, 0.3);
      border-radius: 6px;
      color: #f1f5f9;
      font-size: 16px;
      outline: none;
      transition: border-color 0.2s ease;
    }

    .search-input::placeholder {
      color: #94a3b8;
    }

    .search-input:focus {
      border-color: #0ea5e9;
    }

     .wallet-wrapper {
            position: relative;
            display: inline-block;
        }

        .wallet-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 20px;
            background: white;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            color: #333;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .wallet-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        }

        .wallet-btn svg {
            width: 20px;
            height: 20px;
        }

        .wallet-btn .chevron {
            width: 16px;
            height: 16px;
            transition: transform 0.3s ease;
        }

        /* 下拉菜单样式 */
        .dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            margin-top: 8px;
            width: 180px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 1000;
            overflow: hidden;
        }

        /* 鼠标悬停时显示下拉菜单 */
        .wallet-wrapper:hover .dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* 鼠标悬停时旋转箭头 */
        .wallet-wrapper:hover .wallet-btn .chevron {
            transform: rotate(180deg);
        }

        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
            padding: 14px 16px;
            background: none;
            border: none;
            text-align: left;
            font-size: 14px;
            font-weight: 500;
            color: #333;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .dropdown-item:hover {
            background: #f5f5f5;
        }

        .dropdown-item:active {
            background: #ebebeb;
        }

        .dropdown-item svg {
            width: 18px;
            height: 18px;
            color: #666;
        }

        .dropdown-item:not(:last-child) {
            border-bottom: 1px solid #f0f0f0;
        }



    /* 按钮 */
    .nav-actions .btn {
      padding: 8px 16px;
      font-size: 16px;
      font-weight: 500;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s ease;
      border: none;
    }

    .nav-actions .btn-outline {
      background-color: transparent;
      border: 1px solid rgba(148, 163, 184, 0.3);
      color: #f1f5f9;
    }

    .nav-actions .btn-outline:hover {
      background-color: rgba(148, 163, 184, 0.1);
    }

    .nav-actions  .btn-primary {
      background-color: #0ea5e9;
      color: #fff;
    }

    .nav-actions  .btn-primary:hover {
      background-color: #0284c7;
    }

    /* 汉堡菜单按钮 */
    .menu-toggle {
      display: none;
      padding: 8px;
      background: transparent;
      border: none;
      border-radius: 6px;
      color: #f1f5f9;
      cursor: pointer;
      transition: background-color 0.2s ease;
    }

    .mobile-wallet-btn {
      display: none;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      background: #0ea5e9;
      border: none;
      border-radius: 10px;
      color: #fff;
      cursor: pointer;
      font-size: 14px;
      font-weight: 600;
      box-shadow: 0 8px 24px rgba(14, 165, 233, 0.24);
    }

    .mobile-wallet-btn svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }

    .menu-toggle:hover {
      background-color: rgba(148, 163, 184, 0.1);
    }

    .menu-toggle svg {
      width: 24px;
      height: 24px;
    }

    .menu-close {
      display: none;
    }

    /* 移动端菜单 */
    .mobile-menu {
      display: none;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease, opacity 0.3s ease;
      opacity: 0;
    }

    .mobile-menu.active {
      max-height: 400px;
      opacity: 1;
    }

    .mobile-menu-content {
      padding: 16px;
      border-top: 1px solid rgba(148, 163, 184, 0.2);
    }

    .mobile-search {
      width: 100%;
      margin-bottom: 16px;
    }

    .mobile-search .search-input {
      width: 100%;
      height: 40px;
    }

    .mobile-nav-links {
      list-style: none;
      margin-bottom: 16px;
    }

    .mobile-nav-links li {
      margin-bottom: 4px;
    }

    .mobile-nav-links a {
      display: block;
      padding: 8px 12px;
      color: hsl(var(--foreground));
      text-decoration: none;
      font-size: 20px;
      border-radius: 6px;
      transition: all 0.2s ease;
    }

    .mobile-nav-links a:hover {
      
      color: hsl(var(--primary));
      background-color: rgba(148, 163, 184, 0.1);
    }

    .mobile-actions {
      display: flex;
      gap: 12px;
      padding-top: 8px;
    }

    .mobile-actions .btn {
      flex: 1;
      text-align: center;
    }

    /* 响应式 */
    @media (max-width: 768px) {
      .nav-links,
      .nav-actions {
        display: none;
      }

      .mobile-wallet-btn {
        display: inline-flex;
      }

      .menu-toggle,
      .mobile-menu {
        display: none !important;
      }

      .menu-toggle.active .menu-open {
        display: none;
      }

      .menu-toggle.active .menu-close {
        display: block;
      }
    }


    
        /* Footer */
        .footer {
            border-top: 1px solid var(--border);
            padding: 3rem 0;
            text-align: center;
            color: var(--muted-foreground);
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-top: 1rem;
            flex-wrap: wrap;
        }

        .footer-links a {
            color: var(--muted-foreground);
            text-decoration: none;
            font-size: 0.875rem;
            transition: color 0.3s;
        }

        .footer-links a:hover {
            color: var(--primary);
        }
