@charset "UTF-8";

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.58);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(0);
    box-shadow: 0 8px 15px 0 rgba(60, 60, 60, 0.18);
    /* 灰色阴影 */
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 15px 0 rgba(60, 60, 60, 0.22);
    /* 灰色阴影加深 */
    /* height: 70px; */
    backdrop-filter: blur(10px);
}

.navbar-inner {
    width: 100%;
    padding: 0 15%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: clamp(36px, 2.2vw, 44px);
    display: flex;
    align-items: center;
    transition: var(--transition);
    z-index: 1001;
}

.logo img {
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    margin-left: 12px;
    background: linear-gradient(90deg, #2966f3 0%, #1a4fd8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    display: flex;
    gap: clamp(20px, 2.5vw, 48px);
}

nav a {
    text-decoration: none;
    color: var(--dark-text);
    font-size: var(--nav-font-size);
    font-weight: 500;
    position: relative;
    white-space: nowrap;
    padding: 1.67vw 0;
    display: inline-block;
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary-blue);
}

nav a.active {
    color: var(--primary-blue);
    font-weight: 600;
}

/*nav a::after {
      content: '';
      position: absolute;
      bottom: 8px; 
      left: 0;
      width: 0;
      height: 3px;
      background: var(--primary-blue);
      border-radius: 2px;
      transition: var(--transition);
    }*/

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}