/* 导航栏样式 */
.navbar {
    background: #16213e;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.navbar-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar-logo img {
    height: 50px;
}

.navbar-home {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    padding-bottom: 5px;
}

.navbar-home.active {
    border-bottom: 3px solid #ff6600;
}

.navbar-home .star {
    font-size: 18px;
}

.navbar-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-right: -150px;
}

.navbar-contact {
    color: #ff6600;
    font-size: 18px;
    font-weight: bold;
}

.search-box {
    position: relative;
}

.search-box input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 40px 8px 15px;
    color: #fff;
    width: 180px;
    outline: none;
    font-size: 14px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-box input:focus {
    border-color: #ff6600;
    background: rgba(255, 255, 255, 0.15);
}

.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button svg {
    width: 18px;
    height: 18px;
    stroke: #999;
    transition: stroke 0.3s;
}

.search-box button:hover svg {
    stroke: #ff6600;
}

/* 导航栏右侧用户区域 */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-login-btn {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6600 100%);
    border: none;
    border-radius: 6px;
    padding: 8px 24px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.navbar-login-btn:hover {
    background: linear-gradient(135deg, #ff9d5c 0%, #ff7700 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.navbar-user:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ff6600;
}

.navbar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ff6600;
    object-fit: cover;
}

.navbar-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.navbar-user-name {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.navbar-user-balance {
    color: #4CAF50;
    font-size: 12px;
}

.navbar-logout-btn {
    background: rgba(255, 77, 79, 0.2);
    border: 1px solid #ff4d4f;
    border-radius: 6px;
    padding: 6px 16px;
    color: #ff4d4f;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.navbar-logout-btn:hover {
    background: rgba(255, 77, 79, 0.3);
    transform: translateY(-2px);
}

/* 登录模态框样式 */
.login-modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.login-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-mask {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.login-content {
    position: relative;
    width: 380px;
    background: #1a2332;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.login-close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-close:hover {
    background: rgba(255, 77, 79, 0.3);
    color: #ff4d4f;
}

.login-title {
    text-align: center;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 25px;
}

.login-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.login-qr-image {
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
}

.login-link {
    text-align: center;
    margin-top: 15px;
}

.login-link a {
    color: #ff6600;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.login-link a:hover {
    color: #ff8c42;
}



